diff options
author | James Rayner <james@archlinux.org> | 2009-09-27 14:04:28 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-27 14:04:28 +0200 |
commit | dce7afd6a8d4bcd6adb7f1d1b330c21fcb8c9957 (patch) | |
tree | f9675d14d4d694245751956e7fa019d3b0ca9ad3 /src/connections/wireless | |
parent | 8b355a1e43887b67c327d5c79c488a0a673f35dc (diff) | |
download | netctl-dce7afd6a8d4bcd6adb7f1d1b330c21fcb8c9957.tar.gz netctl-dce7afd6a8d4bcd6adb7f1d1b330c21fcb8c9957.tar.xz |
Only flush when disabling wireless interface, tidy up down/forcedown
Diffstat (limited to 'src/connections/wireless')
-rw-r--r-- | src/connections/wireless | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/connections/wireless b/src/connections/wireless index 2d2463d..6de7379 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -43,7 +43,7 @@ iwconfig_up() { fi fi - quirk "predown" && bring_interface forcedown "$INTERFACE" # madwifi FS#10585 + quirk "predown" && bring_interface down "$INTERFACE" # madwifi FS#10585 report_debug wireless_up iwconfig "$INTERFACE" $WEP_OPTS @@ -165,12 +165,10 @@ wireless_up() { # wireless_down PROFILE [ LEAVE ifconfig up? default no ] wireless_down() { - local PROFILE="$1" NOETHERNETDOWN="$2" + local PROFILE="$1" load_profile "$PROFILE" - if ! checkyesno "$NOETHERNETDOWN"; then - "$CONN_DIR/ethernet" down "$PROFILE" - fi + "$CONN_DIR/ethernet" down "$PROFILE" if [[ ${SECURITY:(-4)} == "-old" ]]; then report_debug wireless_down iwconfig "$INTERFACE" essid off key off |