summaryrefslogtreecommitdiff
path: root/naywatch
Commit message (Collapse)AuthorAgeFilesLines
* treewide: remove AUTORELEASENick Hainke2023-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <vincent@systemli.org>
* naywatch: add log when naywatch activatesNick Hainke2022-06-101-0/+3
| | | | | | | | Naywatch now prints naywatch: Naywatch Activated! when becoming active. Signed-off-by: Nick Hainke <vincent@systemli.org>
* naywatch: fix reboot_nowNick Hainke2022-04-011-1/+1
| | | | | | | 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 <vincent@systemli.org>
* naywatch: introduce kick-countNick Hainke2022-01-131-1/+6
| | | | | | | Check multiple rounds if neighbors are available before kicking. This should reduce unneeded reboots. Signed-off-by: Nick Hainke <vincent@systemli.org>
* naywatch: fix mode without watchdogNick Hainke2022-01-131-4/+4
| | | | | | The if-condition was always evaluated to be true. Signed-off-by: Nick Hainke <vincent@systemli.org>
* naywatch: warn userNick Hainke2021-11-152-2/+7
| | | | | | | | | | 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 <vincent@systemli.org>
* naywatch: fix procd handlingNick Hainke2021-10-011-2/+26
| | | | | | | | 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 <vincent@systemli.org>
* naywatch: add naywatchNick Hainke2021-08-014-0/+235
The network may crash on the SoCs, but the SoC itself does not. This leads to a node no longer being accessible in a mesh network. If the node is placed in a location that is not easily accessible, e.g. in a high tower, it can cause a lot of problems. Therefore we check the link-local connectivity on the configured interfaces. Signed-off-by: Nick Hainke <vincent@systemli.org> Tested-by: Simon Polack <spolack+git@mailbox.org> Signed-off-by: Simon Polack <spolack+git@mailbox.org>