luci-app-turboacc: fixes hwnat judgment on mediatek
@@ -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
