aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-07 03:49:45 +0000
committerBill Nottingham <notting@redhat.com>2001-08-07 03:49:45 +0000
commit45d0465b995ef94cfec8dcb141bd777af21fa3c3 (patch)
tree4acf47019188384224226a2cbc524e903ac4178a /sysconfig/network-scripts
parentd6aaa8915922ca2462ad4095662518ee2bf98607 (diff)
downloadinitscripts-45d0465b995ef94cfec8dcb141bd777af21fa3c3.tar
initscripts-45d0465b995ef94cfec8dcb141bd777af21fa3c3.tar.gz
initscripts-45d0465b995ef94cfec8dcb141bd777af21fa3c3.tar.bz2
initscripts-45d0465b995ef94cfec8dcb141bd777af21fa3c3.tar.xz
initscripts-45d0465b995ef94cfec8dcb141bd777af21fa3c3.zip
don't do anything in ifup if we're running under hotplug and $HOTPLUG is set to 'no'
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 5249a33c..de25961d 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -52,6 +52,10 @@ if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" -o "${ONBOOT}" = "NO" ]
then
exit
fi
+if [ -n "$IN_HOTPLUG" -a "${HOTPLUG}" = "no" -o "${HOTPLUG}" = "NO" ]
+then
+ exit
+fi
# figure out more about what we are dealing with
DEVICETYPE=`echo ${DEVICE} | sed "s/[0-9]*$//"`