2019-11-02 11:15:02 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2023-07-06 01:12:57 +08:00
|
|
|
uci -q get system.@imm_init[0] > "/dev/null" || uci -q add system imm_init > "/dev/null"
|
2019-11-02 11:15:02 +08:00
|
|
|
|
2023-07-06 01:12:57 +08:00
|
|
|
if ! uci -q get system.@imm_init[0].lang > "/dev/null"; then
|
2023-11-23 15:23:49 +08:00
|
|
|
uci -q batch <<-EOF
|
|
|
|
|
set luci.main.lang="auto"
|
|
|
|
|
commit luci
|
2019-11-02 11:15:02 +08:00
|
|
|
|
2023-11-23 15:23:49 +08:00
|
|
|
set system.@imm_init[0].lang="1"
|
|
|
|
|
commit system
|
|
|
|
|
EOF
|
2023-07-06 01:12:57 +08:00
|
|
|
fi
|
2020-07-29 21:56:29 +08:00
|
|
|
|
2023-07-06 01:12:57 +08:00
|
|
|
ln -sf "/sbin/ip" "/usr/bin/ip"
|
2019-11-02 11:15:02 +08:00
|
|
|
|
2023-07-06 01:12:57 +08:00
|
|
|
sed -i "/log-facility/d" "/etc/dnsmasq.conf"
|
|
|
|
|
echo "log-facility=/dev/null" >> "/etc/dnsmasq.conf"
|
|
|
|
|
|
|
|
|
|
rm -rf "/tmp/luci-modulecache"
|
|
|
|
|
rm -f "/tmp/luci-indexcache"
|
2019-11-02 11:15:02 +08:00
|
|
|
|
|
|
|
|
exit 0
|