aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-14 19:01:30 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-14 19:01:30 +0000
commit19246191d3d1e001e40b8a23d70e6d3e5f0dd2b1 (patch)
treef8a5ecfa7a46ed19e321a68107298d4f5a68feea /package
parent3836b3acb2e83948e09f7b95bda7a04eb3185833 (diff)
downloadupstream-19246191d3d1e001e40b8a23d70e6d3e5f0dd2b1.tar.gz
upstream-19246191d3d1e001e40b8a23d70e6d3e5f0dd2b1.tar.bz2
upstream-19246191d3d1e001e40b8a23d70e6d3e5f0dd2b1.zip
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 <christian.schoenebeck@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42923 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh1
1 files changed, 1 insertions, 0 deletions
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
}