feat(watch): treat ModemManager journal as redial standard

Use MM registration/packet-service events as the recovery trigger
instead of public egress probes, so re-register heals with zero
cellular traffic. Wait for wwan IPv4 after settle, coalesce bursts,
and keep ip-monitor + poll as fallbacks.
This commit is contained in:
Hermes
2026-07-24 09:53:03 +00:00
parent 6a3015aecc
commit 659ad6f950
5 changed files with 304 additions and 29 deletions
+6
View File
@@ -36,6 +36,12 @@ load_config() {
CELLULAR_IFACE_PATTERNS="${CELLULAR_IFACE_PATTERNS:-wwan,wwp,usb,enx,ppp,cdc,rmnet,ccmni,mbim,qmi}"
ENABLE_CELLULAR_WATCH="${ENABLE_CELLULAR_WATCH:-true}"
WATCH_INTERVAL_SEC="${WATCH_INTERVAL_SEC:-60}"
WATCH_MM_EVENTS="${WATCH_MM_EVENTS:-true}"
WATCH_MM_UNIT="${WATCH_MM_UNIT:-ModemManager}"
WATCH_MM_SETTLE_SEC="${WATCH_MM_SETTLE_SEC:-5}"
WATCH_MM_READY_TIMEOUT_SEC="${WATCH_MM_READY_TIMEOUT_SEC:-90}"
WATCH_MM_READY_POLL_SEC="${WATCH_MM_READY_POLL_SEC:-2}"
WATCH_MM_COALESCE_SEC="${WATCH_MM_COALESCE_SEC:-20}"
PROXY_LISTEN_HOST="${PROXY_LISTEN_HOST:-0.0.0.0}"
PROXY_MIXED_PORT="${PROXY_MIXED_PORT:-7890}"
PROXY_USER="${PROXY_USER:-}"