1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

test wifi exit if no ssid is found

This commit is contained in:
Jerry Vonau 2020-05-04 14:42:10 -05:00
parent c602bace6b
commit 7fd6fc9737

View file

@ -2,7 +2,7 @@
IFACE={{ discovered_wireless_iface }}
RASPBIAN=0
NETPLAN=0
SSID=""
SSID="NA"
# when we get here br0 should be available and dbus wpa_supplicant was started if enabled. None
# of the backends that use wpa_supplicant should be active yet based on the Before= After= lines
# in the wifi-test.service unit file.
@ -32,6 +32,11 @@ if [ -f /etc/iiab/iiab.env ]; then
SSID=$CLIENT_SSID
fi
fi
echo "ssid is $SSID"
if [[ $SSID == "" ]]; then
echo "Couldn't find ssid to use exiting"
exit 0
fi
# might need to start the dbus wpa_supplicant
#if [ $RASPBIAN -eq 1 ]; then
# systemctl start wpa_supplicant