1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00
iiab/roles/network/templates/hostapd/hostapd.legacy.j2

16 lines
635 B
Django/Jinja

[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
# https://unix.stackexchange.com/questions/257888/systemd-wait-for-network-interface-to-be-up-before-running-service/417839#417839
# 2022-08-22: #3352 Raspberry Pi Zero W requires 2 lines below...
BindsTo=sys-subsystem-net-devices-{{ discovered_wireless_iface }}.device
After=sys-subsystem-net-devices-{{ discovered_wireless_iface }}.device
Before=network.target
Wants=network-pre.target
[Service]
Type=idle
PIDFile=/run/hostapd.pid
ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf
[Install]
WantedBy=multi-user.target