5 PATH=/sbin:/usr/sbin:/bin:/usr/bin
7 . /etc/sysconfig/network
8 . /etc/rc.d/init.d/functions
9 . /etc/sysconfig/network-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 kill -KILL ${PID} > /dev/null 2>&1
37 logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE (pppd-$DEVNAME)" &
40 if is_yes "${PPPOA_EAGLE}"; then
41 EAGLECTRL="/usr/sbin/adictrl"
42 if [ ! -x $EAGLECTRL ]; then
43 EAGLECTRL="/usr/sbin/eaglectrl"
45 if [ -x $EAGLECTRL ]; then
46 PPPOA_IFACE=$( $EAGLECTRL -i 2>/dev/null)
47 [ -n "$PPPOA_IFACE" ] && ip link set "$PPPOA_IFACE" down
51 /etc/sysconfig/network-scripts/ifdown-post $1
55 # This must be last line !
56 # vi:syntax=sh:tw=78:ts=8:sw=4