Der pppd wurde einfach gekillt, auch wenn er noch die Verbindung beendet hat.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@908 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-09-22 11:41:27 +00:00
parent 931065d04f
commit 352e626f71
3 changed files with 6 additions and 3 deletions

View File

@@ -80,10 +80,11 @@ case "$1" in
reconnect)
while ( ps ax | grep -q [p]ppd ); do
msg_log "There is a pppd still running. Waiting 2 seconds for exit."
sleep 2
done
/etc/rc.d/init.d/network restart red &
/etc/rc.d/init.d/network restart red
;;
*)

View File

@@ -22,7 +22,7 @@ export PATH="/bin:/usr/bin:/sbin:/usr/sbin"
RELOADSIG="HUP"
# Number of seconds between STOPSIG and FALLBACK when stopping processes
KILLDELAY="3"
KILLDELAY="5"
## Screen Dimensions
# Find current screen size

View File

@@ -295,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}