summaryrefslogtreecommitdiffstats
path: root/src-wireless
diff options
context:
space:
mode:
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