diff --git a/roles/network/templates/hostapd/test-wifi b/roles/network/templates/hostapd/test-wifi index b11c58c1c..7a8418bc1 100755 --- a/roles/network/templates/hostapd/test-wifi +++ b/roles/network/templates/hostapd/test-wifi @@ -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