From 7066207333db5667a513c6467cd066732184dccc Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Mon, 6 Jul 2026 17:06:13 -0400 Subject: [PATCH] deploy: tolerate absent AP radios (hub not yet plugged in) Co-Authored-By: Claude Fable 5 --- deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 3f10252..77f7311 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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