mirror of
https://github.com/openwrt/routing.git
synced 2026-10-12 02:37:25 +04:00
The comment claimed the version check has to be skipped because running the script may trigger a reboot. That is not what happens: reboot_now() is only reached once naywatch has seen a neighbour (ACTIVE=1) and then lost it for more than MIN_KICK intervals, and the watchdog branch is not taken either, because the probe leaves use_watchdog empty. What does happen is that naywatch takes positional arguments - check interval, watchdog timeout, and so on - rather than options, so a probe flag ends up as the check interval and the script enters its monitoring loop instead of reporting anything, until the probe timeout kills it. The override stays, only its justification is corrected. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>