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-iproute | |
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-iproute')
-rw-r--r-- | src/connections/ethernet-iproute | 6 |
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 } |