summaryrefslogtreecommitdiffstats
path: root/src-wireless
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-09-07 11:27:35 +0200
committerJames Rayner <james@archlinux.org>2009-09-07 11:27:35 +0200
commit47e89de7b8cbb9b26f1e4471702c9def3063f940 (patch)
tree0ae85b620ecf4651f9b466dac2f50091b77d1e23 /src-wireless
parenta14696d03dd23fac8d4c56058e8571049e0649dc (diff)
downloadnetctl-47e89de7b8cbb9b26f1e4471702c9def3063f940.tar.gz
netctl-47e89de7b8cbb9b26f1e4471702c9def3063f940.tar.xz
Use wpa_supplicant for list_networks
Diffstat (limited to 'src-wireless')
-rw-r--r--src-wireless/netcfg-auto-wireless3
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