#!/bin/sh
if [ -z "${IPKG_INSTROOT}" ]; then
	if [ -x /etc/uci-defaults/90-luci-app-daede-init ]; then
		( . /etc/uci-defaults/90-luci-app-daede-init )
		rm -f /etc/uci-defaults/90-luci-app-daede-init
	fi
	rm -f /usr/lib/lua/luci/i18n/daed.zh-cn.lmo
	rm -rf /tmp/luci-indexcache /tmp/luci-indexcache.* /tmp/luci-modulecache
	/etc/init.d/rpcd restart >/dev/null 2>&1 || true
	/etc/init.d/uhttpd restart >/dev/null 2>&1 || true
fi
exit 0
