• R/O
  • HTTP
  • SSH
  • HTTPS

luci: Commit

LuCI - OpenWrt Configuration Interface


Commit MetaInfo

Revisão1242f1c71878d886e8b92cc15c0d463e1e05c133 (tree)
Hora2022-05-24 13:21:40
AutorZiMing Mo <msylgj@immo...>
CommiterZiMing Mo

Mensagem de Log

luci-app-turboacc: disable hw_flow if not mt762x

Mudança Sumário

Diff

--- a/applications/luci-app-turboacc/root/etc/config/turboacc
+++ b/applications/luci-app-turboacc/root/etc/config/turboacc
@@ -1,7 +1,7 @@
11
22 config turboacc 'config'
33 option sw_flow '1'
4- option hw_flow '1'
4+ option hw_flow '0'
55 option fullcone_nat '1'
66 option bbr_cca '0'
77 option dns_caching '0'
--- a/applications/luci-app-turboacc/root/etc/uci-defaults/turboacc
+++ b/applications/luci-app-turboacc/root/etc/uci-defaults/turboacc
@@ -7,4 +7,11 @@ uci -q batch <<-EOF >/dev/null
77 commit ucitrack
88 EOF
99
10+local hw_flow=0
11+[ -n "$(cat /etc/openwrt_release | grep -q mt762)" ] && hw_flow=1
12+uci -q batch <<-EOF >/dev/null
13+ set turboacc.config.hw_flow=${hw_flow}
14+ commit turboacc
15+EOF
16+
1017 exit 0
Show on old repository browser