diff options
author | James Rayner <james@archlinux.org> | 2009-08-10 12:37:58 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-08-10 12:37:58 +0200 |
commit | 1400a8362753016dacc699679e8b9daebd3c8513 (patch) | |
tree | b09e758d547b26f47952d74e9807b07e5a4086a7 /src/connections/ethernet | |
parent | 5f43ba3cfab8851b2a380d609029b8061ae51bca (diff) | |
download | netctl-1400a8362753016dacc699679e8b9daebd3c8513.tar.gz netctl-1400a8362753016dacc699679e8b9daebd3c8513.tar.xz |
Add interface setting, a debug mode and interface setting hooks
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r-- | src/connections/ethernet | 11 |
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? |