2021-09-28 12:36:13 +08:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
2021-10-04 04:26:48 +08:00
|
|
|
|
touch /etc/crontabs/root
|
|
|
|
|
|
2021-09-28 12:36:13 +08:00
|
|
|
|
uci set luci.main.lang=zh_cn
|
2022-02-24 18:35:18 +08:00
|
|
|
|
#<23><><EFBFBD><EFBFBD>Ĭ<EFBFBD><C4AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2021-10-04 04:26:48 +08:00
|
|
|
|
#uci set luci.main.mediaurlbase=/luci-static/bootstrap_mod
|
2021-09-28 12:36:13 +08:00
|
|
|
|
uci commit luci
|
|
|
|
|
|
|
|
|
|
uci set system.@system[0].timezone=CST-8
|
|
|
|
|
uci set system.@system[0].zonename=Asia/Shanghai
|
|
|
|
|
uci commit system
|
|
|
|
|
|
|
|
|
|
uci set fstab.@global[0].anon_mount=1
|
|
|
|
|
uci commit fstab
|
|
|
|
|
|
|
|
|
|
ln -sf /sbin/ip /usr/bin/ip
|
|
|
|
|
|
2021-10-04 04:26:48 +08:00
|
|
|
|
sed -i '/lienol/d' /etc/opkg/distfeeds.conf
|
|
|
|
|
#sed -i 's/downloads.openwrt.org/openwrt.proxy.ustclug.org/g' /etc/opkg/distfeeds.conf
|
|
|
|
|
#sed -i 's/http/https/g' /etc/opkg/distfeeds.conf
|
2021-09-28 12:36:13 +08:00
|
|
|
|
sed -i "s/# //g" /etc/opkg/distfeeds.conf
|
|
|
|
|
|
2021-10-04 04:26:48 +08:00
|
|
|
|
#sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
|
|
|
|
|
|
|
|
|
|
#uci set dhcp.lan.ra='server'
|
|
|
|
|
#uci set dhcp.lan.dhcpv6='server'
|
|
|
|
|
#uci set dhcp.lan.ra_management='1'
|
|
|
|
|
#uci set dhcp.lan.ra_default='1'
|
|
|
|
|
#uci set dhcp.@dnsmasq[0].localservice=0
|
|
|
|
|
#uci set dhcp.@dnsmasq[0].nonwildcard=0
|
|
|
|
|
#uci commit dhcp
|
|
|
|
|
|
2022-02-24 18:35:18 +08:00
|
|
|
|
#DNS<4E>ض<EFBFBD><D8B6><EFBFBD>
|
2021-09-28 12:36:13 +08:00
|
|
|
|
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
2021-10-04 04:26:48 +08:00
|
|
|
|
echo "# iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user
|
2021-09-28 12:36:13 +08:00
|
|
|
|
|
|
|
|
|
sed -i '/option disabled/d' /etc/config/wireless
|
|
|
|
|
sed -i '/set wireless.radio${devidx}.disabled/d' /lib/wifi/mac80211.sh
|
2021-10-04 04:26:48 +08:00
|
|
|
|
wifi up
|
2021-09-28 12:36:13 +08:00
|
|
|
|
|
2021-10-04 13:14:31 +08:00
|
|
|
|
date=`date +%m.%d`
|
2022-02-28 15:55:21 +08:00
|
|
|
|
date1=`date +%h`
|
2021-09-28 12:36:13 +08:00
|
|
|
|
sed -i '/DISTRIB_REVISION/d' /etc/openwrt_release
|
2021-10-04 13:14:31 +08:00
|
|
|
|
echo "DISTRIB_REVISION='v$date'" >> /etc/openwrt_release
|
2021-10-04 23:10:45 +08:00
|
|
|
|
sed -i '/DISTRIB_RELEASE/d' /etc/openwrt_release
|
2022-02-28 15:55:21 +08:00
|
|
|
|
echo "DISTRIB_RELEASE='v$date1'" >> /etc/openwrt_release
|
2021-09-28 12:36:13 +08:00
|
|
|
|
sed -i '/DISTRIB_DESCRIPTION/d' /etc/openwrt_release
|
2021-10-04 04:26:48 +08:00
|
|
|
|
echo "DISTRIB_DESCRIPTION='Openwrt '" >> /etc/openwrt_release
|
2021-09-28 12:36:13 +08:00
|
|
|
|
|
|
|
|
|
sed -i 's/LuCI Master/kenzo/g' /usr/lib/lua/luci/version.lua
|
|
|
|
|
sed -i 's/LuCI openwrt-18.06 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
2022-02-24 18:35:18 +08:00
|
|
|
|
sed -i 's/LuCI openwrt-18.06-k5.4 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
2021-09-28 12:36:13 +08:00
|
|
|
|
sed -i 's/LuCI 17.01 Lienol/kenzo/g' /usr/lib/lua/luci/version.lua
|
|
|
|
|
sed -i 's/LuCI openwrt-21.02 branch/kenzo/g' /usr/lib/lua/luci/version.lua
|
|
|
|
|
sed -i '/luciversion/d' /usr/lib/lua/luci/version.lua
|
2022-03-09 11:29:55 +08:00
|
|
|
|
echo 'luciversion = "v$date1"' >> /usr/lib/lua/luci/version.lua
|
2021-10-04 04:26:48 +08:00
|
|
|
|
|
2022-02-24 18:35:18 +08:00
|
|
|
|
# ɾ<><C9BE>״̬ҳ<CCAC><D2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE>
|
2021-10-04 04:26:48 +08:00
|
|
|
|
rm -rf /usr/lib/lua/luci/view/admin_status/index
|
|
|
|
|
#mv -f /usr/lib/lua/luci/view/admin_status/index /usr/lib/lua/luci/view/admin_status/index_backup 2>/dev/null
|
|
|
|
|
|
2022-02-24 18:35:18 +08:00
|
|
|
|
#<23><><EFBFBD><EFBFBD>ijЩ<C4B3><D0A9><EFBFBD>ܻ<EFBFBD><DCBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><C3B2>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2021-10-04 04:26:48 +08:00
|
|
|
|
/etc/init.d/php7-fastcgi disable 2>/dev/null
|
|
|
|
|
/etc/init.d/php7-fpm disable 2>/dev/null
|
|
|
|
|
/etc/init.d/softethervpnbridge disable 2>/dev/null
|
|
|
|
|
/etc/init.d/softethervpnserver disable 2>/dev/null
|
|
|
|
|
/etc/init.d/softethervpnclient disable 2>/dev/null
|
|
|
|
|
/etc/init.d/haproxy disable 2>/dev/null
|
|
|
|
|
/etc/init.d/kcptun disable 2>/dev/null
|
|
|
|
|
|
|
|
|
|
rm -rf /tmp/luci-*cache
|
2021-09-28 12:36:13 +08:00
|
|
|
|
|
|
|
|
|
exit 0
|