]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- actually check $MODEMPORT being chardevice after all *DSL variants
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Mar 2008 15:14:16 +0000 (15:14 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 25 Mar 2008 15:14:16 +0000 (15:14 +0000)
svn-id: @9671

sysconfig/network-scripts/ifup-ppp

index 47b9efe9bba3e1feedc2220772947a226f7a262a..0ab15fd4a79e35695653e70a5235091322b109e9 100755 (executable)
@@ -49,11 +49,6 @@ 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
@@ -100,6 +95,12 @@ elif is_yes "${PPPOA}"; then
        MODEMMODE="plugin pppoatm.so"
        MODEMPORT="${PPPOA_VPI}.${PPPOA_VCI}"
 else
+
+       if [ -n "$MODEMPORT" -a ! -c "$MODEMPORT" ]; then
+               echo >&2 "MODEMPORT=$MODEMPORT is not a character device!"
+               exit 1
+       fi
+
        if is_no "${DIRECT_CONNECT}" || [ -z "${DIRECT_CONNECT}" ]; then
                PEERCONF=/etc/ppp/peers/${DEVNAME}
                if [ ! -f ${PEERCONF} ]; then
This page took 0.24476 seconds and 4 git commands to generate.