aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifdown-ppp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp
index 84325ca6..f3226419 100755
--- a/sysconfig/network-scripts/ifdown-ppp
+++ b/sysconfig/network-scripts/ifdown-ppp
@@ -11,13 +11,15 @@ if [ ! -f /var/run/ppp-$DEVICE.dev ]; then
fi
file=/var/run/`cat /var/run/ppp-$DEVICE.dev`.pid
+
+# signals ifup-ppp not to persist -- must do this before exiting if PPP
+# has not yet started ($file does not exist).
+rm -f /var/run/ppp-$DEVICE.dev
+
if [ ! -f $file ]; then
exit 0
fi
-# signals ifup-ppp not to persist
-rm -f /var/run/ppp-$DEVICE.dev
-
PID=`cat $file`
if [ -z "$PID" ]; then
exit 1