aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-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