From 1b7ba92c16769a15a0379fdbd3792dd258db52b9 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Tue, 5 Apr 2011 03:11:21 +0000 Subject: [PATCH] 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. --- usr.sbin/bsdinstall/scripts/wlanconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/scripts/wlanconfig b/usr.sbin/bsdinstall/scripts/wlanconfig index d95ccffd49da..c62312a354db 100755 --- a/usr.sbin/bsdinstall/scripts/wlanconfig +++ b/usr.sbin/bsdinstall/scripts/wlanconfig @@ -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 $@