mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Replace wireless-tools app with iw in armbian-first-login
This commit is contained in:
@@ -307,7 +307,7 @@ set_timezone_and_locales() {
|
||||
while [[ ${scanning} -lt 3 ]]; do
|
||||
sleep 0.5
|
||||
scanning=$(( scanning + 1 ))
|
||||
readarray -t ARRAY < <(iwlist ${WIFI_DEVICE} scanning 2> /dev/null | egrep 'ESSID' | sed 's/^[ \t]*//' | sed 's/"//g' | sed 's/ESSID://' | sed '/^$/d' | sort | uniq | awk 'BEGIN{FS=OFS=","} {$NF=++count OFS $NF} 1')
|
||||
readarray -t ARRAY < <(iw dev ${WIFI_DEVICE} scan 2> /dev/null | egrep 'SSID' | sed 's/^[ \t]*//' | sed 's/"//g' | sed 's/SSID: //' | sed '/^$/d' | sort | uniq | awk 'BEGIN{FS=OFS=","} {$NF=++count OFS $NF} 1')
|
||||
if [[ ${#ARRAY[@]} -gt 0 ]]; then broken=0; break; fi
|
||||
done
|
||||
# wifi can also fail
|
||||
|
||||
Reference in New Issue
Block a user