From 3c441efa02410d6e5a4d6f6719dcd6b848d7c2c9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 3 Mar 2020 09:28:44 +0100 Subject: [PATCH] build: reload rpcd in package postinstall Send a SIGHUP to rpcd after installing LuCI packages to reload ACL rules. Also remove redundant code while we're at it. Signed-off-by: Jo-Philipp Wich (backported from commit ca558f4f93451de7afb2a85c017051cb807b3329) --- luci.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luci.mk b/luci.mk index 2c12688844..d1edb54117 100644 --- a/luci.mk +++ b/luci.mk @@ -225,6 +225,9 @@ ifneq ($(LUCI_DEFAULTS),) define Package/$(PKG_NAME)/postinst [ -n "$${IPKG_INSTROOT}" ] || {$(foreach script,$(LUCI_DEFAULTS), (. /etc/uci-defaults/$(script)) && rm -f /etc/uci-defaults/$(script)) + rm -f /tmp/luci-indexcache + rm -rf /tmp/luci-modulecache/ + killall -HUP rpcd 2>/dev/null exit 0 } endef -- 2.30.2