#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] && exit 0
uci -q get mihomo.config >/dev/null 2>&1 || uci set mihomo.config=config
uci set mihomo.config.app_name="九九加速"
uci commit mihomo
chmod 600 /etc/config/mihomo 2>/dev/null
rm -f /etc/uci-defaults/99-luci-app-mihomo
rm -f /tmp/luci-indexcache /tmp/luci-indexcache.*
rm -rf /tmp/luci-modulecache/
/etc/init.d/rpcd reload 2>/dev/null || true
/etc/init.d/uhttpd reload 2>/dev/null || /etc/init.d/uhttpd restart 2>/dev/null || true
exit 0
