diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-04-15 15:19:10 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-04-24 13:39:17 +0200 |
commit | 50742d10d095d9d86750e6ae7f97076985145ff0 (patch) | |
tree | cee2fd4336d7b6ff67145afda6f06805d1ca94c2 /sysconfig/network-scripts/ifdown-ppp | |
parent | 32e8cbc1c91ada764ef4b5bb817b0c045d3fb3a4 (diff) | |
download | initscripts-50742d10d095d9d86750e6ae7f97076985145ff0.tar initscripts-50742d10d095d9d86750e6ae7f97076985145ff0.tar.gz initscripts-50742d10d095d9d86750e6ae7f97076985145ff0.tar.bz2 initscripts-50742d10d095d9d86750e6ae7f97076985145ff0.tar.xz initscripts-50742d10d095d9d86750e6ae7f97076985145ff0.zip |
move ppp support to ppp package
Diffstat (limited to 'sysconfig/network-scripts/ifdown-ppp')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ppp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp deleted file mode 100755 index fca64638..00000000 --- a/sysconfig/network-scripts/ifdown-ppp +++ /dev/null @@ -1,51 +0,0 @@ -#! /bin/bash - -cd /etc/sysconfig/network-scripts -. ./network-functions - -CONFIG=$1 -source_config - -if [ "$TYPE" = "xDSL" ] && [ -x /usr/sbin/adsl-stop ] ; then - adsl-stop /etc/sysconfig/network-scripts/$CONFIG - exit $? -fi - -CONFIG=${CONFIG##ifcfg-} - -if [ "${DEMAND}" = "yes" ] && [ -f /var/run/ppp-${CONFIG}.pid ] ; then - PID=$(head -1 /var/run/ppp-${CONFIG}.pid) - kill -TERM ${PID} - sleep 2 - [ ! -d /proc/${PID} ] && exit 0 - sleep 5 - [ ! -d /proc/${PID} ] && exit 0 - kill -TERM ${PID} - [ ! -d /proc/${PID} ] && exit 0 - exit 1 -fi - -file=/var/run/pppwatch-${DEVICE}.pid - -if [ ! -f $file ]; then - # ppp isn't running, or we didn't start it - exit 0 -fi - -PID=$(cat $file) -[ -n "${PID}" ] || exit 1 - -kill -TERM ${PID} > /dev/null 2>&1 -[ ! -d /proc/${PID} ] && exit 0 -sleep 2 -[ ! -d /proc/${PID} ] && exit 0 -sleep 5 -[ ! -d /proc/${PID} ] && exit 0 -sleep 10 -[ ! -d /proc/${PID} ] && exit 0 - -# killing ppp-watch twice in a row causes it to send a SIGKILL to pppd pgrp -kill -TERM ${PID} > /dev/null 2>&1 -[ ! -d /proc/${PID} ] && exit 0 - -exit 1 |