1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00
This commit is contained in:
Jerry Vonau 2023-04-23 12:23:33 -05:00
parent 348974be6f
commit a49a0680d3

View file

@ -2,7 +2,7 @@
IFACE={{ discovered_wireless_iface }}
RASPBIAN=0
NETPLAN=0
SSID="NA"
SSID=""
# 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 iiab-wifi-test.service unit file.
@ -55,7 +55,7 @@ if [ -f /etc/iiab/iiab.env ]; then
fi
# NetworkManager
if [ $SSID == "NA" ] && [ ! -z $(pgrep NetworkManager) ]; then
if [ -z $SSID ] && [ ! -z $(pgrep NetworkManager) ]; then
echo "NetworkManager"
sleep 15
SSID=$(iw $IFACE info | grep ssid | awk '{print $2}' )