summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-04-05 03:11:21 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-04-05 03:11:21 +0000
commit1b7ba92c16769a15a0379fdbd3792dd258db52b9 (patch)
tree698a7ad6a5d6ee073b7dcf4d088d4c7e7a966e1c /usr.sbin/bsdinstall
parentbf61104672c63d4afdc1c9f86a9701bfa502657f (diff)
downloadFreeBSD-src-1b7ba92c16769a15a0379fdbd3792dd258db52b9.zip
FreeBSD-src-1b7ba92c16769a15a0379fdbd3792dd258db52b9.tar.gz
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.
Diffstat (limited to 'usr.sbin/bsdinstall')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/wlanconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/wlanconfig b/usr.sbin/bsdinstall/scripts/wlanconfig
index d95ccff..c62312a 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 $@
OpenPOWER on IntegriCloud