diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-13 18:38:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-13 18:38:22 +0000 |
commit | a4220a32aa17b97eafef4b3c1fdfa870c692785e (patch) | |
tree | 4945c6a3444f6ae15a9a1c082643f27364d3ea54 /mdk-stage1/ppp/scripts/ppp-off | |
parent | 2522c7a91d008ee569dd81713af1d13940cbf454 (diff) | |
download | drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar.gz drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar.bz2 drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.tar.xz drakx-a4220a32aa17b97eafef4b3c1fdfa870c692785e.zip |
kill 10 years old snapshot of pppd & pppoe
(now using upstream pppd & pppoe)
Diffstat (limited to 'mdk-stage1/ppp/scripts/ppp-off')
-rwxr-xr-x | mdk-stage1/ppp/scripts/ppp-off | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/mdk-stage1/ppp/scripts/ppp-off b/mdk-stage1/ppp/scripts/ppp-off deleted file mode 100755 index a22b5ea3d..000000000 --- a/mdk-stage1/ppp/scripts/ppp-off +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -###################################################################### -# -# Determine the device to be terminated. -# -if [ "$1" = "" ]; then - DEVICE=ppp0 -else - DEVICE=$1 -fi - -###################################################################### -# -# If the ppp0 pid file is present then the program is running. Stop it. -if [ -r /var/run/$DEVICE.pid ]; then - kill -INT `cat /var/run/$DEVICE.pid` -# -# If the kill did not work then there is no process running for this -# pid. It may also mean that the lock file will be left. You may wish -# to delete the lock file at the same time. - if [ ! "$?" = "0" ]; then - rm -f /var/run/$DEVICE.pid - echo "ERROR: Removed stale pid file" - exit 1 - fi -# -# Success. Let pppd clean up its own junk. - echo "PPP link to $DEVICE terminated." - exit 0 -fi -# -# The ppp process is not running for ppp0 -echo "ERROR: PPP link is not active on $DEVICE" -exit 1 |