summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 2105ec2..86d8b96 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -12,8 +12,7 @@ ethernet_up() {
fi
report_debug ethernet_up ifup
- ip link set $INTERFACE up
- sleep 2
+ set_interface up $INTERFACE
if ip link show $INTERFACE|grep -q "NO-CARRIER"; then
report_fail "No connection"
@@ -135,13 +134,7 @@ ethernet_down() {
esac
report_debug ethernet_down ifdown
- ifconfig $INTERFACE 0.0.0.0
-
- case "$CONNECTION" in # Keep interface up for wireless
- ethernet|ethernet-old)
- quirk "nodown" || ifconfig $INTERFACE down
- ;;
- esac
+ set_interface down $INTERFACE
}
# Returns status of profile - is it still functional?