This commit is contained in:
sirpdboy 2020-11-20 01:04:00 +08:00
parent ced3ec4f94
commit 0393bee1d9
3 changed files with 9 additions and 18 deletions

View File

@ -8,7 +8,6 @@ uci set system.@system[0].zonename=Asia/Shanghai
uci commit system
uci set fstab.@global[0].anon_mount='1'
uci commit fstab
/etc/init.d/fstab restart
uci set dhcp.lan.ra='server'
uci set dhcp.lan.dhcpv6='server'
uci set dhcp.lan.ra_management='1'
@ -17,27 +16,20 @@ uci set dhcp.lan.force='1'
uci set dhcp.@dnsmasq[0].filter_aaaa='0'
uci set dhcp.@dnsmasq[0].cachesize='10000'
uci commit dhcp
/etc/init.d/dhcp restart
if [ ! -f /etc/config/sfe ]; then
uci set sfe.config.enabled='0'
uci set sfe.config.bbr='1'
uci commit sfe
/etc/init.d/sfe restart
fi
if [ ! -f /etc/config/flowoffload ]; then
# uci set sfe.config.enabled='0'
# uci set sfe.config.bbr='1'
# uci commit sfe
# /etc/init.d/sfe restart
uci set flowoffload.@flow[0].flow_offloading='0'
uci set flowoffload.@flow[0].bbr='1'
uci commit flowoffload
/etc/init.d/flowoffload restart
fi
#uci set network.wan.proto=pppoe
uci set network.wan.mtu=1400
uci commit network
/etc/init.d/network restart
#rm -f /usr/lib/lua/luci/view/admin_status/index/mwan.htm
#rm -f /usr/lib/lua/luci/view/admin_status/index/upnp.htm
rm -f /usr/lib/lua/luci/view/admin_status/index/ddns.htm
rm -f /usr/lib/lua/luci/view/admin_status/index/minidlna.htm
#rm -f /usr/lib/lua/luci/view/admin_status/index/minidlna.htm
sed -i '/coremark/d' /etc/crontabs/root
sed -i 's/\"services\"/\"nas\"/g' /usr/lib/lua/luci/controller/aria2.lua
sed -i 's/services/nas/g' /usr/lib/lua/luci/view/aria2/overview_status.htm
@ -58,12 +50,11 @@ sed -i 's/\"network\"/\"control\"/g' /usr/lib/lua/luci/controller/eqos.lua
uci set minidlna.config.enabled=0
uci commit minidlna
/etc/init.d/minidlna enable
/etc/init.d/minidlna stop
# /etc/init.d/minidlna stop
uci set vsftpd.@listen[0].enable4=0
uci commit vsftpd
/etc/init.d/vsftpd stop
# /etc/init.d/vsftpd stop
ln -sf /sbin/ip /usr/bin/ip

View File

@ -4,7 +4,7 @@ function index()
if not nixio.fs.access("/etc/config/weburl") then return end
entry({"admin", "control"}, firstchild(), "Control", 44).dependent = false
entry({"admin", "control", "weburl"}, cbi("weburl"), _("网址过滤"), 12).dependent =
entry({"admin", "control", "weburl"}, cbi("weburl"), _("网址过滤"), 12).dependent =
true
end

View File

@ -3,7 +3,7 @@
#Disable ipv6 address resolution
#force-AAAA-SOA yes
speed-check-mode tcp:443,tcp:80,ping
#speed-check-mode tcp:443,tcp:80,ping
#example bind :7054 -group us -no-dualstack-selection -no-cache -force-aaaa-soa
#bind: 6054 -group china
#bind: 7054 -group guowai