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-$DEVICE.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-$DEVICE.pid
29 [ ! -d /proc/${PID} ] && exit 0
31 kill -TERM ${PID} > /dev/null 2>&1
34 if [ ! -d /proc/${PID} ]; then
35 /etc/sysconfig/network-scripts/ifdown-post $1
40 [ -d /proc/${PID} ] && sleep 5
42 if [ ! -d /proc/${PID} ]; then
43 /etc/sysconfig/network-scripts/ifdown-post $1
47 kill -KILL ${PID} > /dev/null 2>&1
48 logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to nicely kill pppd-$DEVICE" &
52 # This must be last line !
53 # vi:syntax=sh:tw=78:ts=8:sw=4