]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/red
Der pppd wurde einfach gekillt, auch wenn er noch die Verbindung beendet hat.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / networking / red
index 26abb734551c594e829915c76ae2fc975e29eb06..30cb864c3e4bbb3aaaf3b7f703d9b32d6a11d20f 100644 (file)
@@ -83,6 +83,10 @@ case "${1}" in
                        echo -n "${DNS1}" > /var/ipfire/red/dns1
                        echo -n "${DNS2}" > /var/ipfire/red/dns2
                        
+                       boot_mesg "Setting up default gateway ${GATEWAY}..."
+                       ip route add default via ${GATEWAY} dev ${DEVICE}
+                       evaluate_retval
+                       
                        run_subdir ${rc_base}/init.d/networking/red.up/
                        
                elif [ "${TYPE}" == "DHCP" ]; then
@@ -291,7 +295,9 @@ case "${1}" in
                elif [ "$TYPE" == "PPPOE" ]; then
                        boot_mesg "Bringing down the PPPoE interface on ${DEVICE}..."
                        rm -f /var/ipfire/red/keepconnected
-                       killproc /usr/sbin/pppd
+                       kill -TERM /usr/sbin/pppd 2>/dev/null
+                       evaluate_retval
+                       sleep 5
                        
                        ip addr del 1.1.1.1/24 broadcast 1.1.1.255 dev ${DEVICE}