From owner-svn-src-head@FreeBSD.ORG Tue Apr 5 03:11:22 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37E69106566B; Tue, 5 Apr 2011 03:11:22 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 26E5B8FC0A; Tue, 5 Apr 2011 03:11:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p353BMSA003775; Tue, 5 Apr 2011 03:11:22 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p353BMBg003773; Tue, 5 Apr 2011 03:11:22 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201104050311.p353BMBg003773@svn.freebsd.org> From: Nathan Whitehorn Date: Tue, 5 Apr 2011 03:11:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220351 - head/usr.sbin/bsdinstall/scripts X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 03:11:22 -0000 Author: nwhitehorn Date: Tue Apr 5 03:11:21 2011 New Revision: 220351 URL: http://svn.freebsd.org/changeset/base/220351 Log: 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. Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Apr 5 03:09:44 2011 (r220350) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Apr 5 03:11:21 2011 (r220351) @@ -60,7 +60,7 @@ NETWORKS=`echo "$SCAN_RESULTS" | awk -F '/..:..:..:..:..:../ {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 $@