diff options
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index f4d7a130..995f3f95 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -120,9 +120,9 @@ check_device_down () check_link_down () { if [ -x /sbin/mii-tool ]; then - ip link set $1 up >/dev/null 2>&1 + LC_ALL=C ip link show $1 2>/dev/null| grep -q UP || ip link set $1 up >/dev/null 2>&1 + sleep 2 output=`LC_ALL=C /sbin/mii-tool $1 2>&1` - ip link set $1 down >/dev/null 2>&1 if echo $output | grep -q "Operation not supported"; then return 1 elif echo $output | grep -q "link ok"; then |