diff options
author | James Rayner <james@archlinux.org> | 2009-09-07 11:27:35 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-07 11:27:35 +0200 |
commit | 47e89de7b8cbb9b26f1e4471702c9def3063f940 (patch) | |
tree | 0ae85b620ecf4651f9b466dac2f50091b77d1e23 /src-wireless/netcfg-auto-wireless | |
parent | a14696d03dd23fac8d4c56058e8571049e0649dc (diff) | |
download | netctl-47e89de7b8cbb9b26f1e4471702c9def3063f940.tar.gz netctl-47e89de7b8cbb9b26f1e4471702c9def3063f940.tar.xz |
Use wpa_supplicant for list_networks
Diffstat (limited to 'src-wireless/netcfg-auto-wireless')
-rw-r--r-- | src-wireless/netcfg-auto-wireless | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src-wireless/netcfg-auto-wireless b/src-wireless/netcfg-auto-wireless index bbee281..fb076eb 100644 --- a/src-wireless/netcfg-auto-wireless +++ b/src-wireless/netcfg-auto-wireless @@ -11,11 +11,10 @@ wifi_auto() { local interface="$1" report_try "Scanning for networks" - set_interface up "$interface" # uses iproute methods---is it there any value to providing option to use ifconfig? networks="$(list_networks $interface)" - if [[ ! "$networks" ]]; then + if [[ -z $networks ]]; then set_interface forcedown "$interface" exit_fail "- No networks available." fi |