summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-02-16 12:01:15 +0100
committerJames Rayner <james@archlinux.org>2009-02-16 12:01:15 +0100
commit9550b3675ab99e4bc36f5606a8cd5f0037a6ed00 (patch)
tree41bf7337f0408f7c84edd926b307ac84c62446c5 /src
parent540c2d8619f8103c1b4374a50a502ecbec90c953 (diff)
downloadnetctl-9550b3675ab99e4bc36f5606a8cd5f0037a6ed00.tar.gz
netctl-9550b3675ab99e4bc36f5606a8cd5f0037a6ed00.tar.xz
FS#11748 -netcfg takes interface down too early
Diffstat (limited to 'src')
-rw-r--r--src/connections/ethernet7
-rw-r--r--src/connections/wireless1
2 files changed, 6 insertions, 2 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index 042b32b..ad9e870 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -116,8 +116,11 @@ ethernet_down() {
esac
ifconfig $INTERFACE 0.0.0.0
- quirk "nodown" || ifconfig $INTERFACE down
-
+ case "$CONNECTION" in
+ ethernet|ethernet-old)
+ quirk "nodown" || ifconfig $INTERFACE down
+ ;;
+ esac
}
ethernet_$1 $2
diff --git a/src/connections/wireless b/src/connections/wireless
index 688fa98..f521465 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -118,6 +118,7 @@ wireless_down() {
wpa_cli terminate &> /dev/null
[[ "$SECURITY" == "wpa" ]] && rm -f "/tmp/wpa.${1// /}" # remove wpa config
iwconfig $INTERFACE essid off key off &> /dev/null
+ ifconfig $INTERFACE down
}
wireless_$1 $2