diff options
author | Bill Nottingham <notting@redhat.com> | 2008-12-11 11:18:32 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-12-11 11:18:32 -0500 |
commit | 2e47b3e5d979427ca68510f32060cfcbdc299787 (patch) | |
tree | f307a9c0451cca9e735a3a85341e957895ec858a /sysconfig/network-scripts | |
parent | 234e32fd0955e9f78e6a59a6a84842ecec64552a (diff) | |
download | initscripts-2e47b3e5d979427ca68510f32060cfcbdc299787.tar initscripts-2e47b3e5d979427ca68510f32060cfcbdc299787.tar.gz initscripts-2e47b3e5d979427ca68510f32060cfcbdc299787.tar.bz2 initscripts-2e47b3e5d979427ca68510f32060cfcbdc299787.tar.xz initscripts-2e47b3e5d979427ca68510f32060cfcbdc299787.zip |
Bail out sooner if the network service isn't running.
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/net.hotplug | 15 |
1 files 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 |