From: Stan Grishin Date: Thu, 23 Feb 2017 00:25:57 +0000 (-0800) Subject: addrwatch: fix complaint when adding addrwatch with image builder X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f38c3c1749c6ebb4908372af725988f0ec5e364a;p=feed%2Fpackages.git addrwatch: fix complaint when adding addrwatch with image builder Signed-off-by: Stan Grishin --- diff --git a/net/addrwatch/Makefile b/net/addrwatch/Makefile index aadac26612..5ebf90d398 100644 --- a/net/addrwatch/Makefile +++ b/net/addrwatch/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=addrwatch PKG_VERSION:=0.8 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-master.tar.gz PKG_SOURCE_URL:=https://github.com/fln/addrwatch/releases/download/$(PKG_VERSION)/ diff --git a/net/addrwatch/files/addrwatch.init b/net/addrwatch/files/addrwatch.init index c7cbbfe1b1..fb0ea46916 100644 --- a/net/addrwatch/files/addrwatch.init +++ b/net/addrwatch/files/addrwatch.init @@ -4,8 +4,6 @@ START=50 USE_PROCD=1 -. /lib/functions/network.sh - validate_section_addrwatch() { uci_validate_section addrwatch addrwatch "${1}" \ 'disabled:bool:0' \ @@ -65,6 +63,7 @@ start_instance() { } start_service() { + . /lib/functions/network.sh config_load 'addrwatch' config_foreach start_instance 'addrwatch' }