aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/net.hotplug
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-02-06 20:18:34 +0000
committerBill Nottingham <notting@redhat.com>2006-02-06 20:18:34 +0000
commit3ec1a6e3d9d1fe0007b41105dc8196765765d0ed (patch)
tree2a8de9279708e64c0fdab3763327a5a49cceb802 /sysconfig/network-scripts/net.hotplug
parentee396b2a0571a1ecd73ed0f1a65b4d213984018e (diff)
downloadinitscripts-3ec1a6e3d9d1fe0007b41105dc8196765765d0ed.tar
initscripts-3ec1a6e3d9d1fe0007b41105dc8196765765d0ed.tar.gz
initscripts-3ec1a6e3d9d1fe0007b41105dc8196765765d0ed.tar.bz2
initscripts-3ec1a6e3d9d1fe0007b41105dc8196765765d0ed.tar.xz
initscripts-3ec1a6e3d9d1fe0007b41105dc8196765765d0ed.zip
dirty hacks to make sure hotplug doesn't run after unclean shutdown
(#177795)
Diffstat (limited to 'sysconfig/network-scripts/net.hotplug')
-rwxr-xr-xsysconfig/network-scripts/net.hotplug3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/net.hotplug b/sysconfig/network-scripts/net.hotplug
index b59d87e4..543fb541 100755
--- a/sysconfig/network-scripts/net.hotplug
+++ b/sysconfig/network-scripts/net.hotplug
@@ -9,6 +9,9 @@ fi
case $ACTION in
add|register)
# Don't do anything if the network is stopped
+ if [ -f /dev/.in_sysinit ] ; then
+ exit 0
+ fi
if [ ! -f /var/lock/subsys/network ]; then
exit 0
fi