summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/ppp/scripts/ppp-off
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-06-15 10:21:34 +0000
committerMystery Man <unknown@mandriva.org>2005-06-15 10:21:34 +0000
commitced1ffcebee246fd51572566f1b4f08e6b981c23 (patch)
tree01d53c7928a67bf29513da0e079096df3ca1ddaa /mdk-stage1/ppp/scripts/ppp-off
parent43d37ea8829a56d0b864c8665b31da35bb588d51 (diff)
downloaddrakx-backup-do-not-use-ced1ffcebee246fd51572566f1b4f08e6b981c23.tar
drakx-backup-do-not-use-ced1ffcebee246fd51572566f1b4f08e6b981c23.tar.gz
drakx-backup-do-not-use-ced1ffcebee246fd51572566f1b4f08e6b981c23.tar.bz2
drakx-backup-do-not-use-ced1ffcebee246fd51572566f1b4f08e6b981c23.tar.xz
drakx-backup-do-not-use-ced1ffcebee246fd51572566f1b4f08e6b981c23.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_24mdk
'V10_3_0_24mdk'.
Diffstat (limited to 'mdk-stage1/ppp/scripts/ppp-off')
-rwxr-xr-xmdk-stage1/ppp/scripts/ppp-off34
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