We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab67aa6 commit ba87a6fCopy full SHA for ba87a6f
tools/modules/network/network_config.sh
@@ -58,8 +58,11 @@ function network_config() {
58
ip link set ${adapter} up
59
default_wireless_network_config "${yamlfile}" "${adapter}"
60
LIST=()
61
- LIST=($(iw dev ${adapter} scan 2> /dev/null | grep 'SSID\|^BSS' | cut -d" " -f2 | sed "s/(.*//g" | xargs -n2 -d'\n' | awk '{print $2,$1}'))
62
- sleep 1
+ for i in {1..3}; do
+ LIST=($(iw dev ${adapter} scan 2> /dev/null | grep 'SSID\|^BSS' | cut -d" " -f2 | sed "s/(.*//g" | xargs -n2 -d'\n' | awk '{print $2,$1}'))
63
+ sleep 3
64
+ [[ "${#LIST[@]}" -gt 0 ]]; break
65
+ done
66
LIST_LENGTH=$((${#LIST[@]} / 2))
67
if [[ ${#LIST[@]} == 0 ]]; then
68
restore_netplan_config
0 commit comments