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
;;
*)
RELOADSIG="HUP"
# Number of seconds between STOPSIG and FALLBACK when stopping processes
-KILLDELAY="3"
+KILLDELAY="5"
## Screen Dimensions
# Find current screen size
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}