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.
17 lines
431 B
Desktop File
17 lines
431 B
Desktop File
[Unit]
|
|
Description=Wireless mode set AP
|
|
Before=wpa_supplicant@.service
|
|
Before=systemd-networkd.service
|
|
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=oneshot
|
|
ExecStart=/bin/ln -sf wifi.network.ap /etc/systemd/network/wifi.network
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|