aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'network-scripts')
-rw-r--r--network-scripts/network-functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/network-scripts/network-functions b/network-scripts/network-functions
index 5f6c72d4..bc046f54 100644
--- a/network-scripts/network-functions
+++ b/network-scripts/network-functions
@@ -455,10 +455,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
}