From: John Crispin Date: Tue, 14 Oct 2014 19:01:30 +0000 (+0000) Subject: base-files: default_postinst() force clear luci-indexcache X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d099a349806f2f6a4945c382ab8b7ed47228bac4;p=openwrt%2Fstaging%2Fzorun.git 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 SVN-Revision: 42923 --- 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 }