aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-12-15 12:17:06 -0500
committerBill Nottingham <notting@redhat.com>2009-12-15 12:18:01 -0500
commitb788e9e092c3c6a91c0c95a06cfc27f6e27e193c (patch)
treef9951db16270321411329115228e3f7caf995fe7
parent67907796ee0b6889b7fbefe5c32f2db202da5e0e (diff)
downloadinitscripts-b788e9e092c3c6a91c0c95a06cfc27f6e27e193c.tar
initscripts-b788e9e092c3c6a91c0c95a06cfc27f6e27e193c.tar.gz
initscripts-b788e9e092c3c6a91c0c95a06cfc27f6e27e193c.tar.bz2
initscripts-b788e9e092c3c6a91c0c95a06cfc27f6e27e193c.tar.xz
initscripts-b788e9e092c3c6a91c0c95a06cfc27f6e27e193c.zip
Honor HOTPLUG in ifdown. (#547737)
-rwxr-xr-xsysconfig/network-scripts/ifdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 1bb64dff..a0cc0c9e 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -36,6 +36,11 @@ fi
source_config
+if [ -n "$IN_HOTPLUG" ] && [ "${HOTPLUG}" = "no" -o "${HOTPLUG}" = "NO" ]
+then
+ exit 0
+fi
+
if [ -x /sbin/ifdown-pre-local ]; then
/sbin/ifdown-pre-local ${DEVICE}
fi