From 68cfc7dd88fd40d74abbbe97b1b71bb2cdfa9768 Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Thu, 25 Dec 2025 13:19:32 +0800 Subject: [PATCH] base-files: default_postinst clean menu cache after install js app Signed-off-by: Liangbin Lian --- package/base-files/files/lib/functions.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index bc8019f19a..dffe6b7345 100644 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -384,16 +384,19 @@ default_postinst() { fi if grep -m1 -q -s "^/usr/share/rpcd/acl\\.d/" "$filelist"; then - /etc/init.d/rpcd reload + /etc/init.d/rpcd reload 2>/dev/null fi if grep -m1 -q -s "^/usr/lib/lua/luci/" "$filelist"; then if grep -m1 -q -s "^/usr/lib/lua/luci/i18n/" "$filelist"; then - /etc/init.d/fix_luci_lang boot + /etc/init.d/fix_luci_lang boot 2>/dev/null touch /tmp/luci-i18n-mtime fi rm -rf /tmp/luci-indexcache /tmp/luci-modulecache /tmp/luci-indexcache.* fi + if grep -m1 -q -s "^/usr/share/luci/menu.d/" "$filelist"; then + rm -f /tmp/luci-indexcache.* + fi fi if [ -f "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" ]; then