From aa70c1a3cbb0541079da5053cd75b9820a397356 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Fri, 10 Dec 2021 23:08:50 +0800 Subject: [PATCH] luci-app-turboacc: fixes hwnat judgment on mediatek --- package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua | 4 ++-- package/lean/luci-app-turboacc/po/zh-cn/turboacc.po | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua b/package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua index 4d2e4571d..cb8ea97a5 100644 --- a/package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua +++ b/package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua @@ -17,10 +17,10 @@ sw_flow.description = translate("Software based offloading for routing/NAT") sw_flow:depends("sfe_flow", 0) end -if luci.sys.call("cat /proc/cpuinfo | grep -q MT76") == 0 then +if luci.sys.call("cat /etc/openwrt_release | grep -q mt762") == 0 then hw_flow = s:option(Flag, "hw_flow", translate("Hardware flow offloading")) hw_flow.default = 0 -hw_flow.description = translate("Requires hardware NAT support. Implemented at least for mt76xx") +hw_flow.description = translate("Requires hardware NAT support. Implemented at least for mt762x") hw_flow:depends("sw_flow", 1) end diff --git a/package/lean/luci-app-turboacc/po/zh-cn/turboacc.po b/package/lean/luci-app-turboacc/po/zh-cn/turboacc.po index 9111e3fc4..cbd9d6ab9 100644 --- a/package/lean/luci-app-turboacc/po/zh-cn/turboacc.po +++ b/package/lean/luci-app-turboacc/po/zh-cn/turboacc.po @@ -19,8 +19,8 @@ msgstr "基于软件的 Routing/NAT 分载" msgid "Hardware flow offloading" msgstr "硬件流量分载" -msgid "Requires hardware NAT support. Implemented at least for mt76xx" -msgstr "需要硬件 NAT 支持。目前 mt76xx 已实现" +msgid "Requires hardware NAT support. Implemented at least for mt762x" +msgstr "需要硬件 NAT 支持。目前 mt762x 已实现" msgid "Shortcut-FE flow offloading" msgstr "Shortcut-FE 流量分载"