diff options
author | Eric Dubé <edube@redhat.com> | 2014-06-10 15:22:11 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-06-10 15:22:39 +0200 |
commit | e7898a3c25c96f2e05bdf6a6170947a9bb67c787 (patch) | |
tree | 7d7ba1015d73620bef89cd233f99edda580a9d8f /sysconfig/network-scripts | |
parent | 0c78d0c8de5407d8166220ad7bd265bcb73b3417 (diff) | |
download | initscripts-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-x | sysconfig/network-scripts/ifdown-eth | 14 |
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 |