From 750074d873466dc2cdd6bbfaa79ce22c4e001ebe Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 16 Mar 2009 16:00:31 -0400 Subject: Remove slip support. We don't provide dip any more, and probably haven't for years. --- sysconfig/network-scripts/ifdown-sl | 45 ------------------------ sysconfig/network-scripts/ifup-sl | 69 ------------------------------------- 2 files changed, 114 deletions(-) delete mode 100755 sysconfig/network-scripts/ifdown-sl delete mode 100755 sysconfig/network-scripts/ifup-sl 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 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 - -- cgit v1.2.1