failover: wire up van-modem-watch in deploy.sh
Completes the van-modem-usb-kick -> van-modem-watch swap from the previous commit: deploy.sh was still installing/enabling the old unit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
3169297148
commit
af18dc0755
@@ -143,10 +143,13 @@ echo "== cellular modem (GSM/LTE) =="
|
||||
# need an explicit gsm.apn set by hand regardless.
|
||||
dpkg -s mobile-broadband-provider-info >/dev/null 2>&1 \
|
||||
|| warn "mobile-broadband-provider-info missing (apt install mobile-broadband-provider-info) — GSM APN auto-config will fail"
|
||||
# Backstop for the modem sometimes never enumerating at boot on the new
|
||||
# powered hub (see the script's docstring).
|
||||
install -D -m0755 failover/van-modem-usb-kick /usr/local/sbin/van-modem-usb-kick
|
||||
install_rendered failover/van-modem-usb-kick.service /etc/systemd/system/van-modem-usb-kick.service
|
||||
# Backstop for the modem sometimes never enumerating at boot (see the
|
||||
# script's docstring) — detection + Pushover alert only. No automated
|
||||
# recovery: a hub power-cycle was proven not to fix this (only a genuine
|
||||
# physical unplug/replug does), so the modem is now on the Pi's native USB
|
||||
# port rather than through the hub. This just pages if it ever recurs.
|
||||
install -D -m0755 failover/van-modem-watch /usr/local/sbin/van-modem-watch
|
||||
install_rendered failover/van-modem-watch.service /etc/systemd/system/van-modem-watch.service
|
||||
|
||||
echo "== cockpit plugin =="
|
||||
install -d /usr/share/cockpit/vanrouter
|
||||
@@ -230,7 +233,7 @@ systemctl restart systemd-resolved
|
||||
# its wait-online would just stall network-online.target. NM-wait-online covers WANs.
|
||||
systemctl mask systemd-networkd-wait-online.service >/dev/null 2>&1 || true
|
||||
systemctl unmask hostapd >/dev/null 2>&1 || true
|
||||
systemctl enable regdomain.service hostapd hostapd-2g van-ap-dnsmasq nftables systemd-networkd van-failover van-thermal van-nvme-watch van-ap-watchdog van-ap-watchdog-2g van-wlan-watchdog van-modem-usb-kick van-gps-owntracks >/dev/null 2>&1 || true
|
||||
systemctl enable regdomain.service hostapd hostapd-2g van-ap-dnsmasq nftables systemd-networkd van-failover van-thermal van-nvme-watch van-ap-watchdog van-ap-watchdog-2g van-wlan-watchdog van-modem-watch van-gps-owntracks >/dev/null 2>&1 || true
|
||||
# bluetooth: host BlueZ serves the onboard hci0 to the HA container over D-Bus
|
||||
systemctl enable --now bluetooth >/dev/null 2>&1 || true
|
||||
systemctl start homeassistant || warn "homeassistant failed to start (podman/quadlet — check journalctl -u homeassistant)"
|
||||
|
||||
Reference in New Issue
Block a user