From 3ec1a6e3d9d1fe0007b41105dc8196765765d0ed Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 6 Feb 2006 20:18:34 +0000 Subject: dirty hacks to make sure hotplug doesn't run after unclean shutdown (#177795) --- sysconfig/network-scripts/net.hotplug | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysconfig/network-scripts/net.hotplug') 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 -- cgit v1.2.1