From: Paul Spooren Date: Wed, 13 Jun 2018 11:02:41 +0000 (+0900) Subject: bmx7: add config trigger X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=440ad46;p=feed%2Frouting.git bmx7: add config trigger this should automatically reload bmx7 if the config files is changed Signed-off-by: Paul Spooren --- diff --git a/bmx7/Makefile b/bmx7/Makefile index 41205df..b1575ce 100644 --- a/bmx7/Makefile +++ b/bmx7/Makefile @@ -33,7 +33,7 @@ PKG_SOURCE_URL:=git://github.com/bmx-routing/bmx7.git PKG_REV:=9883383dc26df16da67b9ef7ba99efe62f79c4e7 PKG_MIRROR_HASH:=012178aba42016d3e0961715f99bf1e322c2c6c22b1cc6635375468360cb4d68 PKG_VERSION:=r2018042501 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-2.0 PKG_SOURCE_VERSION:=$(PKG_REV) diff --git a/bmx7/files/etc/init.d/bmx7 b/bmx7/files/etc/init.d/bmx7 index 515dc88..74f8966 100755 --- a/bmx7/files/etc/init.d/bmx7 +++ b/bmx7/files/etc/init.d/bmx7 @@ -20,5 +20,9 @@ start_service() { } reload_service() { - $BIN -c configReload + "$BIN" -c configReload +} + +service_triggers() { + procd_add_reload_trigger "bmx7" }