aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ppp
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1997-10-14 18:03:53 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1997-10-14 18:03:53 +0000
commit944bddc860ef9a77188fb63397b7e772ff21bab9 (patch)
treed864a3daeb14df7157e0acab69dc243d33be8ef4 /sysconfig/network-scripts/ifup-ppp
parent38208d5c274740eeae0146faf0f44778ca53c98a (diff)
downloadinitscripts-944bddc860ef9a77188fb63397b7e772ff21bab9.tar
initscripts-944bddc860ef9a77188fb63397b7e772ff21bab9.tar.gz
initscripts-944bddc860ef9a77188fb63397b7e772ff21bab9.tar.bz2
initscripts-944bddc860ef9a77188fb63397b7e772ff21bab9.tar.xz
initscripts-944bddc860ef9a77188fb63397b7e772ff21bab9.zip
Die if ifdown-ppp was called on the device during the sleep.
Diffstat (limited to 'sysconfig/network-scripts/ifup-ppp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ppp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-ppp b/sysconfig/network-scripts/ifup-ppp
index 3b655245..9f57d838 100755
--- a/sysconfig/network-scripts/ifup-ppp
+++ b/sysconfig/network-scripts/ifup-ppp
@@ -111,4 +111,9 @@ while : ; do
# sleep was killed
exit 0
}
+
+ # exit if our lock file disappeared while we slept
+ if [ ! -f /var/run/ppp-$DEVICE.dev ]; then
+ exit 0
+ fi
done