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:
parent
c602bace6b
commit
7fd6fc9737
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue