SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp

glen glen at pld-linux.org
Tue Mar 25 16:11:28 CET 2008


Author: glen
Date: Tue Mar 25 16:11:27 2008
New Revision: 9670

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp
Log:
- check $MODEMPORT set from config (not the value set from this script)

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup-ppp	Tue Mar 25 16:11:27 2008
@@ -49,6 +49,11 @@
 	REPORTFILE=/dev/null
 fi
 
+if [ -n "$MODEMPORT" -a ! -c "$MODEMPORT" ]; then
+	echo >&2 "MODEMPORT=$MODEMPORT is not a character device!"
+	exit 1
+fi
+
 if [ -n "${PPPOE_DEV}" ]; then
 	if is_yes "${PPPOE_KERNEL}"; then
 		modprobe -s -k pppoe
@@ -136,11 +141,6 @@
 	exit 1
 fi
 
-if [ ! -c "$MODEMPORT" ]; then
-	echo >&2 "MODEMPORT=$MODEMPORT is not a character device!"
-	exit 1
-fi
-
 if [ -z "$HOLDOFF" ]; then
 	HOLDOFF=30
 fi


More information about the pld-cvs-commit mailing list