summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet-iproute
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/ethernet-iproute')
-rw-r--r--src/connections/ethernet-iproute6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute
index 75c99f3..2f0c485 100644
--- a/src/connections/ethernet-iproute
+++ b/src/connections/ethernet-iproute
@@ -19,8 +19,7 @@ ethernet_up() {
fi
report_debug ethernet_iproute_up ifup
- ip link set $INTERFACE up
- sleep 2
+ set_interface up $INTERFACE
if ip link show $INTERFACE|grep -Fq "NO-CARRIER"; then
report_fail "No connection"
@@ -119,8 +118,7 @@ ethernet_down() {
fi
report_debug ethernet_iproute_down if_down
- ip addr flush $INTERFACE
- quirk "nodown" || ip link set $INTERFACE down
+ set_interface down $INTERFACE
}