From 47e89de7b8cbb9b26f1e4471702c9def3063f940 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Mon, 7 Sep 2009 19:27:35 +1000 Subject: Use wpa_supplicant for list_networks --- src-wireless/netcfg-auto-wireless | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src-wireless') 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 -- cgit v1.2.3-24-g4f1b