OpenVoiceOS/buildroot-external/package/wifi-connect/start-wifi-connect

13 lines
248 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
sleep 15
iwgetid -r
if [ $? -eq 0 ]; then
printf 'Skipping WiFi Connect\n'
else
printf 'Starting WiFi Connect\n'
/usr/local/sbin/wifi-connect
fi