Browse Source

net/mwan3: add Makefile postinst and postrm for rpcd

Restart rpcd on package install/remove

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 7 years ago
parent
commit
44eb0a7c9d
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      net/mwan3/Makefile

+ 16
- 0
net/mwan3/Makefile View File

@ -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


Loading…
Cancel
Save