]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
The flags of a WLAN need to be quoted (they contain things like brackets)
authordteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:54:44 +0000 (02:54 +0000)
committerdteske <dteske@FreeBSD.org>
Tue, 13 Dec 2016 02:54:44 +0000 (02:54 +0000)
usr.sbin/bsdinstall/scripts/wlanconfig

index 1218d279100ead9b6e776d02d3e6e135e88a26d5..dc87dbd5ef07a2ff1715e547c4609159b8865650 100755 (executable)
@@ -208,7 +208,7 @@ while :; do
 
        f_eval_catch -dk SCAN_RESULTS wlanconfig wpa_cli "wpa_cli scan_results"
        NETWORKS=$( echo "$SCAN_RESULTS" | awk -F '\t' '
-               /..:..:..:..:..:../ && $5 { printf "\"%s\"\t%s\n", $5, $4 }
+               /..:..:..:..:..:../ && $5 { printf "\"%s\"\t\"%s\"\n", $5, $4 }
        ' | sort | uniq )
 
        if [ ! "$NETWORKS" ]; then