<feed xmlns='http://www.w3.org/2005/Atom'>
<title>routing/naywatch, branch master</title>
<subtitle>Mirror of routing feed</subtitle>
<id>https://git.openwrt.org/feed/routing/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/routing/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/'/>
<updated>2026-08-10T07:43:05Z</updated>
<entry>
<title>naywatch: correct the reason recorded in test-version.sh</title>
<updated>2026-08-10T07:43:05Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-08-06T12:13:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=2fe4311dbc0f4046285ed22155e221f56c5e4f51'/>
<id>urn:sha1:2fe4311dbc0f4046285ed22155e221f56c5e4f51</id>
<content type='text'>
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 &lt;pepe.schlehofer@gmail.com&gt;
Co-authored-by: Claude Fable 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>naywatch: add test-version.sh for CI runtime tests</title>
<updated>2026-08-10T07:43:05Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-08-06T07:47:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=361d14cb3f6c4ce520d230c0116055bc583adabd'/>
<id>urn:sha1:361d14cb3f6c4ce520d230c0116055bc583adabd</id>
<content type='text'>
naywatch is a watchdog shell script which does not provide any
option to report its version, so the generic version check of the CI
runtime tests fails for this package. On top of that, the generic
check executes each installed executable with several flags to probe
for the version, which must never happen for a watchdog script that
may trigger a reboot of the test environment.

Providing a test-version.sh both skips the version probing of the
binary and overrides the version check.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
Co-authored-by: Claude Fable 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>treewide: install configs with INSTALL_CONF (0600)</title>
<updated>2025-11-10T09:38:36Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2025-06-16T20:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=03a13710eaedb137902c5fe72269dcd322e4065b'/>
<id>urn:sha1:03a13710eaedb137902c5fe72269dcd322e4065b</id>
<content type='text'>
Use INSTALL_CONF instead of INSTALL_DATA to install configuration
 files under /etc with correct permissions.

This improves security by ensuring config files are not world-readable.
INSTALL_DATA sets mode 0644, while INSTALL_CONF sets mode 0600.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
<entry>
<title>treewide: remove AUTORELEASE</title>
<updated>2023-04-27T15:14:16Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2023-04-26T09:40:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=3e96c851a7871f38c52c7be0e0f693b045fe0758'/>
<id>urn:sha1:3e96c851a7871f38c52c7be0e0f693b045fe0758</id>
<content type='text'>
OpenWrt/packages removed AUTORELEASE treewide. Remove it also in the
routing feed.

This is just copied from [0] with modification to the sed cmd because it
was not working for the routing feed:

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/routing; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's/\/Makefile$//';);
do
  make package/$i/download
done

[0] - https://github.com/openwrt/packages/commit/0c10c224be81f9221dabfab449855ab6718d2a0c

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>naywatch: add log when naywatch activates</title>
<updated>2022-06-10T08:25:43Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2022-06-10T06:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=09d5ceb9230b907029a3e09858ef181ff85e3913'/>
<id>urn:sha1:09d5ceb9230b907029a3e09858ef181ff85e3913</id>
<content type='text'>
Naywatch now prints
  naywatch: Naywatch Activated!
when becoming active.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>naywatch: fix reboot_now</title>
<updated>2022-04-01T08:23:56Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2022-04-01T08:16:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=65f747a8bcf19e0271e6bbe04c2432f9a93cc406'/>
<id>urn:sha1:65f747a8bcf19e0271e6bbe04c2432f9a93cc406</id>
<content type='text'>
Naywatch should first try to reboot normally, and if that does not work
do a hard reboot. However, the hard reboot was never called.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>naywatch: introduce kick-count</title>
<updated>2022-01-13T09:01:09Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2022-01-13T08:34:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=24285ce4fcd56aa806bdbe9ac16cbfed0a81d2f8'/>
<id>urn:sha1:24285ce4fcd56aa806bdbe9ac16cbfed0a81d2f8</id>
<content type='text'>
Check multiple rounds if neighbors are available before kicking. This
should reduce unneeded reboots.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>naywatch: fix mode without watchdog</title>
<updated>2022-01-13T07:56:32Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2022-01-13T07:46:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=cf34c5a4a1ace3f8eeac2d2b9b8539e085e8fabf'/>
<id>urn:sha1:cf34c5a4a1ace3f8eeac2d2b9b8539e085e8fabf</id>
<content type='text'>
The if-condition was always evaluated to be true.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>naywatch: warn user</title>
<updated>2021-11-15T18:37:03Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2021-11-15T18:22:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=ce0b8b1e553ed749e398d8122f7cc5a0692d7372'/>
<id>urn:sha1:ce0b8b1e553ed749e398d8122f7cc5a0692d7372</id>
<content type='text'>
Naywatch in combination with the watchdog can be tricky and dangerous
when doing a sysupgrade. Add a warning to always stop naywatch first and
check if procd took control over the watchdog again.

Also change use_watchdog to '0'.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>naywatch: fix procd handling</title>
<updated>2021-10-01T09:53:10Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2021-10-01T08:55:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=e35255710bda08f162a185be8c460b6a80e19fb1'/>
<id>urn:sha1:e35255710bda08f162a185be8c460b6a80e19fb1</id>
<content type='text'>
Sometimes, naywatch can not handover the watchdog to procd again using
ubus. We need to call the same ubus command multiple times until procd
takes over control again.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
</feed>
