OpenVoiceOS/buildroot-external/package/wifi-ap/wireless-mode-client.service

16 lines
373 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Wireless mode set client
Before=wpa_supplicant@.service
Before=systemd-networkd.service
Wants=network.target
# check existence of configuration file
ConditionPathExists=/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
[Service]
Type=oneshot
ExecStart=/bin/ln -sf wifi.network.client /etc/systemd/network/wifi.network
[Install]
WantedBy=multi-user.target