]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- check $MODEMPORT set from config (not the value set from this script)
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Mar 2008 15:11:27 +0000 (15:11 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Mar 2008 15:11:27 +0000 (15:11 +0000)
svn-id: @9670

sysconfig/network-scripts/ifup-ppp

index 0e49692dfb7af63f430336a211f20c0477155602..47b9efe9bba3e1feedc2220772947a226f7a262a 100755 (executable)
@@ -49,6 +49,11 @@ if [ -z "${REPORTFILE}" ] ; then
        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 @@ if [ -z "$MODEMPORT" ]; then
        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
This page took 0.050575 seconds and 4 git commands to generate.