The flags of a WLAN need to be quoted (they contain things like brackets)

This commit is contained in:
Devin Teske 2016-12-13 02:54:44 +00:00
parent 19dbb0ba18
commit be094a3204
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309997

View File

@ -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