From 45d0465b995ef94cfec8dcb141bd777af21fa3c3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 7 Aug 2001 03:49:45 +0000 Subject: don't do anything in ifup if we're running under hotplug and $HOTPLUG is set to 'no' --- sysconfig/network-scripts/ifup | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysconfig') 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]*$//"` -- cgit v1.2.1