From: Florian Eckert Date: Tue, 8 Aug 2017 07:31:34 +0000 (+0200) Subject: net/mwan3: add Makefile postinst and postrm for rpcd X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=44eb0a7c9ded2756fbce0da055f081176b6cd2da;p=feed%2Fpackages.git net/mwan3: add Makefile postinst and postrm for rpcd Restart rpcd on package install/remove Signed-off-by: Florian Eckert --- diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index e32882dd6e..17606e64d0 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -39,6 +39,22 @@ endef define Build/Compile endef +define Package/mwan3/postinst +#!/bin/sh +if [ -z "$${IPKG_INSTROOT}" ]; then + /etc/init.d/rpcd restart +fi +exit 0 +endef + +define Package/mwan3/postrm +#!/bin/sh +if [ -z "$${IPKG_INSTROOT}" ]; then + /etc/init.d/rpcd restart +fi +exit 0 +endef + define Package/mwan3/install $(CP) ./files/* $(1) endef