From: Aaron Goodman Date: Fri, 13 Nov 2020 18:08:14 +0000 (-0500) Subject: mwan3: don't trigger rpcd install hooks if rpcd not installed X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f014a7f5420aaf706c046394f51200faad7fbd88;p=openwrt-packages.git mwan3: don't trigger rpcd install hooks if rpcd not installed Signed-off-by: Aaron Goodman --- diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index ec782a089..ecdd06f96 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -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