luci.mk: fix the rpcd reload command

Prevent it from affecting the rpcd process inside the containers

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
Liangbin Lian
2025-12-25 12:58:32 +08:00
committed by Paul Donald
parent db91dbcdf7
commit bbec143bb3

View File

@@ -233,7 +233,7 @@ define Package/$(PKG_NAME)/postinst
[ -n "$${IPKG_INSTROOT}" ] || { \ [ -n "$${IPKG_INSTROOT}" ] || { \
rm -f /tmp/luci-indexcache.* rm -f /tmp/luci-indexcache.*
rm -rf /tmp/luci-modulecache/ rm -rf /tmp/luci-modulecache/
killall -HUP rpcd 2>/dev/null /etc/init.d/rpcd reload 2>/dev/null
exit 0 exit 0
} }
endef endef