diff options
author | Mystery Man <unknown@mandriva.org> | 2003-09-12 15:16:49 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-09-12 15:16:49 +0000 |
commit | e0a90440b5f10011c62a4ef2ad7ae53ee75eac56 (patch) | |
tree | 8fb507c45d54fb01a7532400679b607cb61e8f33 /mdk-stage1/ppp/scripts/ppp-off | |
parent | 83fc804615d6576d1da05e6b5ac955345914a035 (diff) | |
download | drakx-e0a90440b5f10011c62a4ef2ad7ae53ee75eac56.tar drakx-e0a90440b5f10011c62a4ef2ad7ae53ee75eac56.tar.gz drakx-e0a90440b5f10011c62a4ef2ad7ae53ee75eac56.tar.bz2 drakx-e0a90440b5f10011c62a4ef2ad7ae53ee75eac56.tar.xz drakx-e0a90440b5f10011c62a4ef2ad7ae53ee75eac56.zip |
This commit was manufactured by cvs2svn to create tag 'V9_2_11mdk'.V9_2_11mdk
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 |