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 # set all major variables
17 # signals ifup-sl not to persist
18 rm -f /var/run/sl-$DEVICE.dev
20 # we can use dip or direct slip connection via slattach
21 if is_no "$DIRECT_CONNECT"; then
22 PID=$(pidof dip-$DEVICE)
26 if grep -q "$MODEMPORT" /proc/$x/cmdline; then
27 logger -p daemon.info -t ifdown-sl "signal TERM send to \"$(ps -o cmd= $x)\" - this should be slattach"
34 # The proctitle for connected dip daemons is actually "-dip (ipaddr)"
35 # with ipaddr = local on dial-out, remote on dial-in
36 # Grab the PID of connected dial-out daemon.
38 if [ -z "$PID" ]; then
39 PID=$(pidof -- -dip\ \($IPADDR\))
41 if [ -z "$PID" ]; then
45 kill $PID > /dev/null 2>&1
46 if [ ! -d /proc/$PID ]; then
47 /etc/sysconfig/network-scripts/ifdown-post $1
51 if [ ! -d /proc/$PID ]; then
52 /etc/sysconfig/network-scripts/ifdown-post $1
56 kill -KILL $PID > /dev/null 2>&1
57 if [ -d /proc/$PID ]; then
58 logger -p daemon.info -t ifdown-sl "ifdown-sl unable to kill sl-$DEVICE" &
60 /etc/sysconfig/network-scripts/ifdown-post $1
66 # This must be last line !
67 # vi:syntax=sh:tw=78:ts=8:sw=4