#!/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
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
