Related to Raspberry Pi - Auto WiFi Hotspot Switch
I've noticed the issue when examining /var/log/syslog
and also the uap0
was bouncing back and forth from the ifconfig
.
/usr/bin/autohotspot
script checks for existing SSIDs in /etc/wpa_supplicant/wpa_supplicant.conf
and starts the hotspot only if they are not connected.
Currently configured SSIDs are parsed out of the config using following line:
wpassid=$(awk '/ssid="/{ print $0 }' /etc/wpa_supplicant/wpa_supplicant.conf | awk -F'ssid=' '{ print $2 }' ORS=',' | sed 's/\"/''/g' | sed 's/,$//')