mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
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:
@@ -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
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user