diff options
author | Bill Nottingham <notting@redhat.com> | 2001-08-07 03:49:45 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-08-07 03:49:45 +0000 |
commit | 45d0465b995ef94cfec8dcb141bd777af21fa3c3 (patch) | |
tree | 4acf47019188384224226a2cbc524e903ac4178a | |
parent | d6aaa8915922ca2462ad4095662518ee2bf98607 (diff) | |
download | initscripts-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'
-rwxr-xr-x | sysconfig/network-scripts/ifup | 4 |
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]*$//"` |