Check correctly for whether there are any available wireless networks. This

was tested on a train in the middle of an upstate New York swamp.
This commit is contained in:
nwhitehorn 2011-04-05 03:11:21 +00:00
parent bf61104672
commit 1b7ba92c16

View File

@ -60,7 +60,7 @@ NETWORKS=`echo "$SCAN_RESULTS" | awk -F '\t' \
'/..:..:..:..:..:../ {if (length($5) > 0) printf("\"%s\"\t%s\n", $5, $4);}' |
sort | uniq`
if [ -z $SCAN_RESULTS ]; then
if [ -z $NETWORKS ]; then
dialog --backtitle "FreeBSD Installer" --title "Error" \
--yesno "No wireless networks were found. Rescan?" 0 0 && \
exec $0 $@