diff options
Diffstat (limited to 'src-wireless')
-rw-r--r-- | src-wireless/netcfg-auto-wireless | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src-wireless/netcfg-auto-wireless b/src-wireless/netcfg-auto-wireless index e83f55b..e3c9727 100644 --- a/src-wireless/netcfg-auto-wireless +++ b/src-wireless/netcfg-auto-wireless @@ -13,14 +13,14 @@ wifi_auto() report_try "Scanning for networks" source $IFACE_DIR/$interface - if [[ $RFKILL ]]; then - set_rf_state $interface up + if [[ -n "$RFKILL" ]]; then + set_rf_state "$interface" up fi set_interface up "$interface" # uses iproute methods---is it there any value to providing option to use ifconfig? - networks="$(list_networks $interface)" + networks=$(list_networks "$interface") - if [[ -z $networks ]]; then + if [[ -z "$networks" ]]; then set_interface forcedown "$interface" exit_fail "- No networks available." fi |