aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorEric Dubé <edube@redhat.com>2014-06-10 15:22:11 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-06-10 15:22:39 +0200
commite7898a3c25c96f2e05bdf6a6170947a9bb67c787 (patch)
tree7d7ba1015d73620bef89cd233f99edda580a9d8f /sysconfig/network-scripts
parent0c78d0c8de5407d8166220ad7bd265bcb73b3417 (diff)
downloadinitscripts-e7898a3c25c96f2e05bdf6a6170947a9bb67c787.tar
initscripts-e7898a3c25c96f2e05bdf6a6170947a9bb67c787.tar.gz
initscripts-e7898a3c25c96f2e05bdf6a6170947a9bb67c787.tar.bz2
initscripts-e7898a3c25c96f2e05bdf6a6170947a9bb67c787.tar.xz
initscripts-e7898a3c25c96f2e05bdf6a6170947a9bb67c787.zip
ifdown: don't wait for aliases
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth14
1 files changed, 8 insertions, 6 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index 90442a18..45a82646 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -137,12 +137,14 @@ if [ "${TYPE}" = "Tap" ]; then
tunctl -d "${DEVICE}" >/dev/null
fi
-# wait up to 5 seconds for device to actually come down...
-waited=0
-while ! check_device_down ${DEVICE} && [ "$waited" -lt 50 ] ; do
- usleep 10000
- waited=$(($waited+1))
-done
+# wait up to 5 seconds for device to actually come down if it is not an alias
+if [ ${DEVICE} == ${DEVICE%:*} ]; then
+ waited=0
+ while ! check_device_down ${DEVICE} && [ "$waited" -lt 50 ] ; do
+ usleep 10000
+ waited=$(($waited+1))
+ done
+fi
# don't leave an outdated key sitting around
if [ -n "${WIRELESS_ENC_KEY}" -a -x /sbin/iwconfig ]; then