1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-01-24 23:56:50 +01:00
OpenVoiceOS/buildroot-external/package/wifi-ap/wpa_supplicant-ap0.service
Peter Steenbergen 88aa2a2653 MycroftOS: Fix wifi startup with broadcom driver.
wpa_supplicant doesn't play nice if runned twice. One with
the physical device, secondly with the virtual device.

Therefor we only start wpa_supplicant of ap0 only when there
is no wlan wpa config file present.
2020-01-18 18:18:19 +01:00

19 lines
542 B
Desktop File

[Unit]
Description=WPA supplicant daemon (interface-specific version)
Requires=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-wlan0.conf
# NetworkManager users will probably want the dbus version instead.
[Service]
Type=simple
ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-ap0.conf -
[Install]
WantedBy=sys-subsystem-net-devices-ap0.device