1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

hostapd.legacy.j2: hostapd tries to start too early on Zero W

This commit is contained in:
A Holt 2022-09-26 19:44:38 -04:00 committed by GitHub
parent 7bb5e1bfda
commit c75ab4777c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,9 @@
[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