diff options
author | Paul Spooren <mail@aparcar.org> | 2018-06-13 14:02:41 +0300 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2018-06-13 14:03:54 +0300 |
commit | 440ad460b225a6733ddfd3769af2e7940e40f5b9 (patch) | |
tree | fe5e518686e4d090cb5218b6e1868b0b87a3f839 /bmx7 | |
parent | f785dc0e9b19baf121f3440ef995d58fa18e5ef1 (diff) |
bmx7: add config trigger
this should automatically reload bmx7 if the config files is changed
Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'bmx7')
-rw-r--r-- | bmx7/Makefile | 2 | ||||
-rwxr-xr-x | 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" } |