]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Fix modem dialup
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jan 2009 18:52:40 +0000 (19:52 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jan 2009 18:52:40 +0000 (19:52 +0100)
src/initscripts/init.d/networking/red

index 9b4ffe8a07696e3f5c1967f145845af28c42fb53..a575c0e148eec69e3319f9fe3e9f22b71b3f6227 100644 (file)
@@ -295,8 +295,10 @@ case "${1}" in
                        
                        if [ "$TYPE" == "modem" ]; then
                                PLUGOPTS=" /dev/${COMPORT} ${DTERATE} connect /etc/ppp/dialer lock modem crtscts"
+                               METHOD="PPPOE_PLUGIN"
                        elif [ "$TYPE" == "serial" ]; then
                                PLUGOPTS=" /dev/${COMPORT} ${DTERATE} connect /bin/true lock modem crtscts"
+                               METHOD="PPPOE_PLUGIN"
                        fi
                
                        ### Standard PPP options we always use
@@ -326,11 +328,12 @@ case "${1}" in
                        #
                        if [ "$TYPE" == "pptp" ]; then
                                PPPOE_CMD="pptp $PPTP_PEER --nolaunchpppd"
+                               METHOD=""
                        fi
                        
                        ### Run everything
                        #
-                       if [ "$TYPE" == "pppoe" ] && [ "${METHOD}" == "PPPOE_PLUGIN" ]; then
+                       if [ "$METHOD" == "PPPOE_PLUGIN" ]; then
                                /usr/sbin/pppd $PPP_STD_OPTIONS $DEBUG $DEMAND >/dev/null 2>&1 &
                                evaluate_retval
                                # echo PLUGIN: /usr/sbin/pppd $PPP_STD_OPTIONS $DEBUG $DEMAND