From 440ad460b225a6733ddfd3769af2e7940e40f5b9 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Wed, 13 Jun 2018 20:02:41 +0900 Subject: [PATCH] bmx7: add config trigger this should automatically reload bmx7 if the config files is changed Signed-off-by: Paul Spooren --- bmx7/Makefile | 2 +- bmx7/files/etc/init.d/bmx7 | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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" }