Browse Source

mwan3: don't trigger rpcd install hooks if rpcd not installed

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
lilik-openwrt-22.03
Aaron Goodman 4 years ago
parent
commit
f014a7f542
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      net/mwan3/Makefile

+ 2
- 2
net/mwan3/Makefile View File

@ -45,7 +45,7 @@ endef
define Package/mwan3/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
if [ -z "$${IPKG_INSTROOT}" ] && [ -x /etc/init.d/rpcd ]; then
/etc/init.d/rpcd restart
fi
exit 0
@ -53,7 +53,7 @@ endef
define Package/mwan3/postrm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
if [ -z "$${IPKG_INSTROOT}" ] && [ -x /etc/init.d/rpcd ]; then
/etc/init.d/rpcd restart
fi
exit 0


Loading…
Cancel
Save