1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-14 03:03:53 +02:00
openwrt-routing/naywatch/Makefile
Nick Hainke ce0b8b1e55 naywatch: warn user
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>
2021-11-15 19:37:03 +01:00

51 lines
1.2 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2021 Nick Hainke <vincent@systemli.org>
#
include $(TOPDIR)/rules.mk
PKG_NAME:=naywatch
PKG_VERSION:=1
PKG_RELEASE:=$(AUTORELEASE)
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
PKG_LICENSE:=GPL-2.0-only
include $(INCLUDE_DIR)/package.mk
define Package/naywatch
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Watchdog for IPv6 links
PKGARCH:=all
DEPENDS:=@IPV6 +owipcalc
endef
define Package/naywatch/description
Reboots or triggers watchdog if no link-local neighbor is available.
Important:
Be careful when you do a sysupgrade. Stop naywatch first, and make
sure procd took control again of the watchdog.
You can do this using 'ubus call system watchdog'. Status should be "running".
endef
define Package/naywatch/conffiles
/etc/config/naywatch
endef
define Build/Compile
endef
define Package/naywatch/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/naywatch.init $(1)/etc/init.d/naywatch
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/naywatch.sh $(1)/usr/bin/naywatch
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/naywatch.config $(1)/etc/config/naywatch
endef
$(eval $(call BuildPackage,naywatch))