diff options
author | Bill Nottingham <notting@redhat.com> | 2009-12-15 12:17:06 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-12-15 12:17:06 -0500 |
commit | 5bb16211efc67b59521c03a7504ad728d2db8840 (patch) | |
tree | 97bfa6501487779ea42ae75c7a7a208dcff44329 /sysconfig | |
parent | 86bc305c775a8815a6e919e1ac306123e4ce29e6 (diff) | |
download | initscripts-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')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 5 |
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 |