5 PATH=/sbin:/usr/sbin:/bin:/usr/bin
7 . /etc/sysconfig/network
8 . /etc/rc.d/init.d/functions
9 . /lib/rc-scripts/functions.network
14 if [ ! -f /var/run/ppp-$DEVNAME.pid ]; then
15 # ppp isn't running, or we didn't start it
19 # set all major variables
21 get_ppp_device_and_pid
23 if [ -z "$PID" ]; then
27 rm -f /var/run/ppp-$DEVNAME.pid
29 [ ! -d /proc/${PID} ] && exit 0
31 kill -TERM ${PID} > /dev/null 2>&1
34 [ -d /proc/${PID} ] && sleep 2 && [ -d /proc/${PID} ] && sleep 5
36 if [ -d /proc/${PID} ]; then
37 kill -KILL ${PID} > /dev/null 2>&1
38 logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE (pppd-$DEVNAME)" &
42 if is_yes "${PPPOA_EAGLE}"; then
43 EAGLECTRL="/usr/sbin/adictrl"
44 if [ ! -x $EAGLECTRL ]; then
45 EAGLECTRL="/usr/sbin/eaglectrl"
47 if [ -x $EAGLECTRL ]; then
48 PPPOA_IFACE=$( $EAGLECTRL -i 2>/dev/null)
49 [ -n "$PPPOA_IFACE" ] && ip link set "$PPPOA_IFACE" down
53 /lib/rc-scripts/ifdown-post $1