• R/O
  • HTTP
  • SSH
  • HTTPS

luci: Commit

LuCI - OpenWrt Configuration Interface


Commit MetaInfo

Revisão7342fafc9e81adbdbb85dd137e9236016bec9a57 (tree)
Hora2022-05-24 20:23:35
AutorTianling Shen <cnsztl@immo...>
CommiterTianling Shen

Mensagem de Log

luci-app-turboacc: fix hw_flow settings

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

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 '0'
4+ option hw_flow '1'
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,11 +7,6 @@ uci -q batch <<-EOF >/dev/null
77 commit ucitrack
88 EOF
99
10-local hw_flow=0
11-[ -n "$(cat /etc/openwrt_release | grep 'mt762')" ] && hw_flow=1
12-uci -q batch <<-EOF >/dev/null
13- set turboacc.config.hw_flow=${hw_flow}
14- commit turboacc
15-EOF
10+grep -q "mt762" "/etc/openwrt_release" || { uci -q set turboacc.config.hw_flow=0; uci -q commit turboacc; }
1611
1712 exit 0
Show on old repository browser