From 2e47b3e5d979427ca68510f32060cfcbdc299787 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 11 Dec 2008 11:18:32 -0500 Subject: Bail out sooner if the network service isn't running. --- sysconfig/network-scripts/net.hotplug | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sysconfig/network-scripts/net.hotplug b/sysconfig/network-scripts/net.hotplug index f41c8e8e..36181963 100755 --- a/sysconfig/network-scripts/net.hotplug +++ b/sysconfig/network-scripts/net.hotplug @@ -1,5 +1,13 @@ #!/bin/sh +# Don't do anything if the network is stopped +if [ ! -f /var/lock/subsys/network ]; then + exit 0 +fi +if [ -f /dev/.in_sysinit ] ; then + exit 0 +fi + . /etc/sysconfig/network-scripts/network-functions if [ "$INTERFACE" = "" ]; then @@ -8,13 +16,6 @@ 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 case $INTERFACE in # interfaces that are brought up as a part of configuration -- cgit v1.2.1