deploy: tolerate absent AP radios (hub not yet plugged in)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
9bf142074a
commit
7066207333
@@ -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
|
# restart in dependency order: bridge + members first, then hostapd enslaves the
|
||||||
# radios, then dnsmasq binds br0, then NAT/failover
|
# radios, then dnsmasq binds br0, then NAT/failover
|
||||||
systemctl restart systemd-networkd
|
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)
|
# AP watchdogs last, after hostapd is back up (they only ever restart a wedged hostapd)
|
||||||
systemctl restart van-ap-watchdog van-ap-watchdog-2g
|
systemctl restart van-ap-watchdog van-ap-watchdog-2g
|
||||||
networkctl reload 2>/dev/null || true
|
networkctl reload 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user