2020-07-21 10:30:41 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-07-22 10:29:30 +02:00
|
|
|
export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
|
|
|
|
sleep 15
|
2020-07-21 10:30:41 +02:00
|
|
|
|
|
|
|
iwgetid -r
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
printf 'Skipping WiFi Connect\n'
|
|
|
|
else
|
|
|
|
printf 'Starting WiFi Connect\n'
|
|
|
|
/usr/local/sbin/wifi-connect
|
|
|
|
fi
|