Skip to content

Commit

Permalink
Fix hostapd / wireless device rename race on boot
Browse files Browse the repository at this point in the history
On some boots, the hostapd service would start before udev had
renamed the wireless device on which hostapd relied, causing a
failure.

Explicitly binding the hostapd service units to their respective
device units avoids this by forcing hostapd to wait until a device
with the required name exists.
  • Loading branch information
Julian Phillips committed Sep 27, 2021
1 parent 377dc04 commit c39a7cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/systemd/system/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator for device: %i
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
After=network-online.target
Wants=network-online.target

Expand Down

0 comments on commit c39a7cb

Please sign in to comment.