diff options
| author | Paul Spooren <mail@aparcar.org> | 2018-06-13 20:02:41 +0900 |
|---|---|---|
| committer | Daniel Golle <daniel@makrotopia.org> | 2018-08-16 17:13:42 +0200 |
| commit | f0b852b291c6fea8bd7da911c71b1ba8ee8093ad (patch) | |
| tree | 2b05352e8bda150e5d1abf8094217e3e5636804f | |
| parent | 1b9d1c419f0ecefda51922a7845ab2183d6acd76 (diff) | |
bmx7: add config trigger
this should automatically reload bmx7 if the config files is changed
Signed-off-by: Paul Spooren <mail@aparcar.org>
| -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" } |
