From 56a436b2af971d552d0e395ef46aa9ba6bbddcb2 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Mon, 20 Jul 2020 17:55:14 +0800 Subject: [PATCH 1/2] target/ramips: fix check-size --- target/linux/ramips/image/mt7621.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index db9d351517..2128d1a81f 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -956,7 +956,7 @@ define Device/xiaomi-ac2100 IMAGE/kernel1.bin := append-kernel IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE) IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata - IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size + IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) DEVICE_VENDOR := Xiaomi DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-openssl uboot-envtools endef From 6f3973c5424333d91b36b89c9a90aae9cabd5c88 Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Mon, 20 Jul 2020 17:56:54 +0800 Subject: [PATCH 2/2] luci-app-turboacc: fix hwnat requirement --- 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 62797304ce..b47f694055 100644 --- a/package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua +++ b/package/lean/luci-app-turboacc/luasrc/model/cbi/turboacc.lua @@ -19,10 +19,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 MT7621") == 0 then +if luci.sys.call("cat /proc/cpuinfo | 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 mt7621") +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 4cbe0775d9..2973f5af0b 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 mt7621" -msgstr "需要硬件 NAT 支持。目前 mt7621 已实现" +msgid "Requires hardware NAT support. Implemented at least for mt762x" +msgstr "需要硬件 NAT 支持。目前 mt762x 已实现" msgid "Shortcut-FE flow offloading" msgstr "Shortcut-FE 流量分载"