From 7665f7ac67e53f8fe01671883c0b6ab94631de87 Mon Sep 17 00:00:00 2001 From: dteske Date: Tue, 13 Dec 2016 02:54:44 +0000 Subject: [PATCH] The flags of a WLAN need to be quoted (they contain things like brackets) --- 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 1218d279100e..dc87dbd5ef07 100755 --- a/usr.sbin/bsdinstall/scripts/wlanconfig +++ b/usr.sbin/bsdinstall/scripts/wlanconfig @@ -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 -- 2.39.5