From 19246191d3d1e001e40b8a23d70e6d3e5f0dd2b1 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 14 Oct 2014 19:01:30 +0000 Subject: base-files: default_postinst() force clear luci-indexcache Inside every LuCI package you need to clear luci-indexcache and sometimes when installing non LuCI pacakges it's also needed to clear it. Easier put it into default_postinst(). Signed-off-by: Christian Schoenebeck git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42923 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/lib/functions.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'package/base-files') diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index b88d4d6217..3a5a65dcc7 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -216,6 +216,7 @@ default_postinst() { $i start } done + [ -n "${IPKG_INSTROOT}" ] || rm -f /tmp/luci-indexcache 2>/dev/null return 0 } -- cgit v1.2.3