diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-04-05 03:11:21 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-04-05 03:11:21 +0000 |
commit | 1b7ba92c16769a15a0379fdbd3792dd258db52b9 (patch) | |
tree | 698a7ad6a5d6ee073b7dcf4d088d4c7e7a966e1c /usr.sbin | |
parent | bf61104672c63d4afdc1c9f86a9701bfa502657f (diff) | |
download | FreeBSD-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')
-rwxr-xr-x | usr.sbin/bsdinstall/scripts/wlanconfig | 2 |
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 $@ |