aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/net.hotplug15
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