mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2024-12-13 17:36:27 +01:00
34a89c5541
- Start an Acces Point if no wlan is configured. - Start a small flask webserver to configure the wifi.
19 lines
534 B
Desktop File
19 lines
534 B
Desktop File
[Unit]
|
|
Description=MycroftOS-WiFiSetup webbased configurator
|
|
BindsTo=sys-subsystem-net-devices-ap0.device
|
|
After=sys-subsystem-net-devices-ap0.device
|
|
Before=network.target
|
|
Wants=network.target
|
|
|
|
# check existence of configuration file
|
|
ConditionPathExists= /etc/wpa_supplicant/wpa_supplicant-ap0.conf
|
|
ConditionPathExists=!/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
|
|
|
|
[Service]
|
|
Type=idle
|
|
WorkingDirectory=/opt/mycroft/wifisetup
|
|
ExecStart=/usr/bin/python3 app.py > /dev/null 2>&1
|
|
|
|
[Install]
|
|
WantedBy=sys-subsystem-net-devices-ap0.device
|