1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-13 17:36:27 +01:00
OpenVoiceOS/buildroot-external/package/wifi-ap/wifi-setup.service
Peter Steenbergen 34a89c5541 MycroftOS: Implementation of MycroftOS-WiFiSetup system.
- Start an Acces Point if no wlan is configured.
- Start a small flask webserver to configure the wifi.
2019-12-29 14:03:51 +01:00

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