2 PATH=/sbin:/usr/sbin:/bin:/usr/bin
4 # ifup-post can't be done for slip :-( Solution: use PPP
6 # become a daemon in case we have to persist.
7 if [ "$1" != daemon ] ; then
8 # disconnect stdin, out, err to disassociate from controlling tty
9 # so that no HUPs will get through.
10 $0 daemon $*& </dev/null >/dev/null 2>/dev/null
15 cd /etc/sysconfig/network-scripts
16 . /etc/rc.d/init.d/functions.network
21 if [ "foo$2" = "fooboot" -a ${ONBOOT} = "no" ]
26 if [ -z "$RETRYTIMEOUT" ]; then
30 [ -x /usr/sbin/dip ] || {
31 echo "/usr/sbin/dip does not exist or is not executable"
32 echo "ifup-sl for $DEVICE exiting"
33 logger -p daemon.info -t ifup-sl \
34 "/usr/sbin/dip does not exist or is not executable for $DEVICE"
38 DIPSCRIPT=/etc/sysconfig/network-scripts/dip-$DEVNAME
39 [ -f $DIPSCRIPT ] || {
40 DIPSCRIPT=/etc/sysconfig/network-scripts/dip-$PARENTDEVNAME
42 [ -f $DIPSCRIPT ] || {
43 echo "/etc/sysconfig/network-scripts/dip-$DEVICE does not exist"
44 echo "ifup-sl for $DEVICE exiting"
45 logger -p daemon.info -t ifup-sl \
46 "/etc/sysconfig/network-scripts/dip-$DEVICE does not exist for $DEVICE"
51 echo > /var/run/sl-$DEVICE.dev
52 (logger -p daemon.info -t ifup-sl \
53 "dip started for $DEVICE on $MODEMPORT at $LINESPEED" &)&
54 doexec /usr/sbin/dip dip-$DEVICE $DIPSCRIPT
55 if [ "$PERSIST" != "yes" -o ! -f /var/run/sl-$DEVICE.dev ] ; then
58 rm -f /var/run/sl-$DEVICE.dev
61 sleep $RETRYTIMEOUT || {