summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-12-07 17:38:17 +0100
committerGitHub <noreply@github.com>2020-12-07 17:38:17 +0100
commit265a6bf5effa7fb58ec930dbf1d93e079cf1434e (patch)
tree6f0ba99dacf73f6ba4741ece1c52251aba3800b6
parentec49f3b546c905a4b358d54c8d2d70e86ce023a0 (diff)
parent2e0a445ed5bf1af00f8b453358fd544844c8fd73 (diff)
Merge pull request #4646 from Cynerd/rpcd-mod-postinst-improve
rpcd-mod-*: improve postinst script
-rw-r--r--libs/rpcd-mod-luci/Makefile3
-rw-r--r--libs/rpcd-mod-rad2-enc/Makefile3
-rw-r--r--libs/rpcd-mod-rrdns/Makefile3
3 files changed, 3 insertions, 6 deletions
diff --git a/libs/rpcd-mod-luci/Makefile b/libs/rpcd-mod-luci/Makefile
index 8833bb45ca..a39ec3b224 100644
--- a/libs/rpcd-mod-luci/Makefile
+++ b/libs/rpcd-mod-luci/Makefile
@@ -48,8 +48,7 @@ endef
define Package/rpcd-mod-luci/postinst
#!/bin/sh
-killall -HUP rpcd 2>/dev/null
-exit 0
+[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
endef
$(eval $(call BuildPackage,rpcd-mod-luci))
diff --git a/libs/rpcd-mod-rad2-enc/Makefile b/libs/rpcd-mod-rad2-enc/Makefile
index 121e3a274f..1dd61476aa 100644
--- a/libs/rpcd-mod-rad2-enc/Makefile
+++ b/libs/rpcd-mod-rad2-enc/Makefile
@@ -41,8 +41,7 @@ endef
define Package/rpcd-mod-rad2-enc/postinst
#!/bin/sh
-killall -HUP rpcd 2>/dev/null
-exit 0
+[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
endef
$(eval $(call BuildPackage,rpcd-mod-rad2-enc))
diff --git a/libs/rpcd-mod-rrdns/Makefile b/libs/rpcd-mod-rrdns/Makefile
index f0bf140a87..37f0e04466 100644
--- a/libs/rpcd-mod-rrdns/Makefile
+++ b/libs/rpcd-mod-rrdns/Makefile
@@ -40,8 +40,7 @@ endef
define Package/rpcd-mod-rrdns/postinst
#!/bin/sh
-killall -HUP rpcd 2>/dev/null
-exit 0
+[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
endef
$(eval $(call BuildPackage,rpcd-mod-rrdns))