aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
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:17:06 -0500
commit5bb16211efc67b59521c03a7504ad728d2db8840 (patch)
tree97bfa6501487779ea42ae75c7a7a208dcff44329 /sysconfig/network-scripts/ifdown
parent86bc305c775a8815a6e919e1ac306123e4ce29e6 (diff)
downloadinitscripts-5bb16211efc67b59521c03a7504ad728d2db8840.tar
initscripts-5bb16211efc67b59521c03a7504ad728d2db8840.tar.gz
initscripts-5bb16211efc67b59521c03a7504ad728d2db8840.tar.bz2
initscripts-5bb16211efc67b59521c03a7504ad728d2db8840.tar.xz
initscripts-5bb16211efc67b59521c03a7504ad728d2db8840.zip
Honor HOTPLUG in ifdown. (#547737)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-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