[openwrt/openwrt] base-files: fix default_postinst clearing luci cache

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 2 05:35:57 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/e04ebcc06b4e0936751b4944ed471657080f3974

commit e04ebcc06b4e0936751b4944ed471657080f3974
Author: Liangbin Lian <jjm2473 at gmail.com>
AuthorDate: Thu Dec 25 13:50:14 2025 +0800

    base-files: fix default_postinst clearing luci cache
    
    The path to the LuCI index cache file has changed to
    /tmp/luci-indexcache.*.json since OpenWrt 22.03.
    
    Update functions.sh to align with luci.mk.
    
    Signed-off-by: Liangbin Lian <jjm2473 at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21280
    (cherry picked from commit e9fd3facd041263dcc080748e0637ee99c517dd8)
    Link: https://github.com/openwrt/openwrt/pull/21357
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/base-files/files/lib/functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index c1aeea7b72..de19a5670b 100644
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -382,7 +382,7 @@ default_postinst() {
 			uci commit
 		fi
 
-		rm -f /tmp/luci-indexcache
+		rm -f /tmp/luci-indexcache.*
 	fi
 
 	if [ -f "$root/usr/lib/opkg/info/${pkgname}.postinst-pkg" ]; then




More information about the lede-commits mailing list