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 # 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 \
28 "signal TERM send to \"$(ps -o cmd= $x)\" - this should be slattach"
35 # The proctitle for connected dip daemons is actually "-dip (ipaddr)"
36 # with ipaddr = local on dial-out, remote on dial-in
37 # Grab the PID of connected dial-out daemon.
39 if [ -z "$PID" ]; then
40 PID=$(pidof -- -dip\ \($IPADDR\))
42 if [ -z "$PID" ]; then
46 kill $PID > /dev/null 2>&1
47 if [ ! -d /proc/$PID ]; then
48 /lib/rc-scripts/ifdown-post $1
52 if [ ! -d /proc/$PID ]; then
53 /lib/rc-scripts/ifdown-post $1
57 kill -KILL $PID > /dev/null 2>&1
58 if [ -d /proc/$PID ]; then
59 logger -p daemon.info -t ifdown-sl "ifdown-sl unable to kill sl-$DEVICE" &
61 /lib/rc-scripts/ifdown-post $1