Files
Josef SchlehoferandClaude Fable 5 2fe4311dbc naywatch: correct the reason recorded in test-version.sh
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>
2026-08-10 09:43:05 +02:00
..