deploy: tolerate absent AP radios (hub not yet plugged in)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Andreas Wrede
2026-07-06 17:06:13 -04:00
co-authored by Claude Fable 5
parent 9bf142074a
commit 7066207333
+5 -1
View File
@@ -72,7 +72,11 @@ nmcli general reload 2>/dev/null || systemctl reload NetworkManager 2>/dev/null
# restart in dependency order: bridge + members first, then hostapd enslaves the
# radios, then dnsmasq binds br0, then NAT/failover
systemctl restart systemd-networkd
systemctl restart hostapd hostapd-2g van-ap-dnsmasq nftables van-failover
systemctl restart van-ap-dnsmasq nftables van-failover
# The AP radios live on the USB hub and may be absent; the start then fails but
# Restart=always keeps retrying and claims them the moment they enumerate.
systemctl restart hostapd hostapd-2g \
|| echo " -> hostapd(-2g) waiting for AP radios (USB hub not plugged in)"
# AP watchdogs last, after hostapd is back up (they only ever restart a wedged hostapd)
systemctl restart van-ap-watchdog van-ap-watchdog-2g
networkctl reload 2>/dev/null || true