diff options
author | Bill Nottingham <notting@redhat.com> | 2009-03-16 16:00:31 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-03-16 16:00:31 -0400 |
commit | 750074d873466dc2cdd6bbfaa79ce22c4e001ebe (patch) | |
tree | 5fa99dddcd23d077791533b1025b2e71dd5e3c9c /sysconfig | |
parent | 825dae77cb703b2be273283f1c7e04090f7529af (diff) | |
download | initscripts-750074d873466dc2cdd6bbfaa79ce22c4e001ebe.tar initscripts-750074d873466dc2cdd6bbfaa79ce22c4e001ebe.tar.gz initscripts-750074d873466dc2cdd6bbfaa79ce22c4e001ebe.tar.bz2 initscripts-750074d873466dc2cdd6bbfaa79ce22c4e001ebe.tar.xz initscripts-750074d873466dc2cdd6bbfaa79ce22c4e001ebe.zip |
Remove slip support.
We don't provide dip any more, and probably haven't for years.
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-sl | 45 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-sl | 69 |
2 files changed, 0 insertions, 114 deletions
diff --git a/sysconfig/network-scripts/ifdown-sl b/sysconfig/network-scripts/ifdown-sl deleted file mode 100755 index 0bd0342e..00000000 --- a/sysconfig/network-scripts/ifdown-sl +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash - -cd /etc/sysconfig/network-scripts -. ./network-functions - -CONFIG=$1 -source_config - -# signals ifup-sl not to persist -rm -f /var/run/sl-$DEVICE.dev - -PID=`pidof dip-$DEVICE` -# -# The proctitle for connected dip daemons is actually "-dip (ipaddr)" -# with ipaddr == local on dial-out, remote on dial-in -# Grab the PID of connected dial-out daemon. -# -if [ -z "$PID" ]; then - PID=`pidof -- -dip\ \($IPADDR\)` -fi -if [ -z "$PID" ]; then - exit 1 -fi - -kill $PID > /dev/null 2>&1 -if [ ! -d /proc/$PID ]; then - /etc/sysconfig/network-scripts/ifdown-post $1 - exit 0 -fi -sleep 2 -if [ ! -d /proc/$PID ]; then - /etc/sysconfig/network-scripts/ifdown-post $1 - exit 0 -fi - -kill -KILL $PID > /dev/null 2>&1 -if [ -d /proc/$PID ]; then - /usr/bin/logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to kill pppd-$DEVICE" & -else - /etc/sysconfig/network-scripts/ifdown-post $1 -fi -[ ! -d /proc/$PID ] && exit 0 - -exit 1 - diff --git a/sysconfig/network-scripts/ifup-sl b/sysconfig/network-scripts/ifup-sl deleted file mode 100755 index 4db61641..00000000 --- a/sysconfig/network-scripts/ifup-sl +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -. /etc/init.d/functions - -# ifup-post can't be done for slip :-( Solution: use PPP - -# become a daemon in case we have to persist. -if [ "$1" != daemon ] ; then - # disconnect stdin, out, err to disassociate from controlling tty - # so that no HUPs will get through. - $0 daemon $*& </dev/null >/dev/null 2>/dev/null - exit 0 -fi -shift - -cd /etc/sysconfig/network-scripts -. ./network-functions - -CONFIG=$1 -source_config - -if [ "foo$2" = "fooboot" -a ${ONBOOT} = "no" ] -then - exit -fi - -if [ -z "$RETRYTIMEOUT" ]; then - RETRYTIMEOUT=30 -fi - -[ -x /usr/sbin/dip ] || { - echo $"/usr/sbin/dip does not exist or is not executable" - echo $"ifup-sl for $DEVICE exiting" - /usr/bin/logger -p daemon.info -t ifup-sl \ - $"/usr/sbin/dip does not exist or is not executable for $DEVICE" - exit 1 -} - -DIPSCRIPT=/etc/sysconfig/network-scripts/dip-$DEVNAME -[ -f $DIPSCRIPT ] || { - DIPSCRIPT=/etc/sysconfig/network-scripts/dip-$PARENTDEVNAME -} -[ -f $DIPSCRIPT ] || { - echo $"/etc/sysconfig/network-scripts/dip-$DEVICE does not exist" - echo $"ifup-sl for $DEVICE exiting" - /usr/bin/logger -p daemon.info -t ifup-sl \ - $"/etc/sysconfig/network-scripts/dip-$DEVICE does not exist for $DEVICE" - exit 1 -} - -while : ; do - echo > /var/run/sl-$DEVICE.dev - (/usr/bin/logger -p daemon.info -t ifup-sl \ - $"dip started for $DEVICE on $MODEMPORT at $LINESPEED" &)& - doexec /usr/sbin/dip dip-$DEVICE $DIPSCRIPT - if [ "$PERSIST" != "yes" -o ! -f /var/run/sl-$DEVICE.dev ] ; then - exit 0 - fi - while [ -f /var/run/LCK..$DEVICE && killall -0 dip ] ; do - sleep 10 - done - rm -f /var/run/sl-$DEVICE.dev - - sleep $RETRYTIMEOUT || { - # sleep was killed - exit 0 - } -done - |