Add trace to logs to see which wifi network is being configured.
Warning: this is not foolproof and need to be improved.
exit ${EXIT_CODE_WARNING}
fi
+ # Warning: there is no guarantee that wpa_supplicant will try that network,
+ # if two or more networks are listed in wpa_supplicant.conf and are
+ # all simultaneously reachable (if they appear in iwlist).
+ echo "Trying to connect to wifi network \"${ESSID}\""
+
if [ -f /var/run/wpa_supplicant/${DEVICE} ]; then
echo "Stopping previous wpa_supplicant"
killall wpa_supplicant
network={
ssid="insert your SSID here"
- scan_ssid=1
key_mgmt=WPA-PSK
psk="insert your password here"
}