[OpenWrt-Devel] [PATCH] [package]base-files: default_postinst() force clear luci-indexcache
Christian Schoenebeck
christian.schoenebeck at gmail.com
Fri Sep 26 01:47:01 EDT 2014
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 at gmail.com>
---
package/base-files/files/lib/functions.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index fafb7a3..19c7596 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -204,6 +204,7 @@ default_postinst() {
$i start
}
done
+ [ -n "${IPKG_INSTROOT}" ] || rm -f /tmp/luci-indexcache 2>/dev/null
return 0
}
--
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list