Report comment

Hi Graeme, as mentioned before, reading the ssids directly from wpa_supplicant.conf would help to ensure that the script looks only for known networks/ssids.

Thats why I have changed line 6:
#ssids=('mySSID1' 'mySSID2' 'mySSID3')
ssids=$(awk '/ssid="/{ print $0 }' /etc/wpa_supplicant/wpa_supplicant.conf | awk -F'ssid=' '{ print $2 }' ORS=' ' | sed 's/\"/''/g' | sed 's/ $//')

Cheers,
Tino