diff options
-rw-r--r-- | network-scripts/network-functions | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/network-scripts/network-functions b/network-scripts/network-functions index 2d4a907a..c80467ab 100644 --- a/network-scripts/network-functions +++ b/network-scripts/network-functions @@ -459,10 +459,8 @@ check_device_down () set_link_up () { - if [ "$LINKSTATUS" = down ]; then + if [ "$LINKSTATUS" != up ]; then ip link set dev $1 up >/dev/null 2>&1 - else - grep -qsx 1 /sys/class/net/$1/carrier fi } |