From 92ebed577b11b64a11bc6dc041a53de3a2b3716c Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 2 Feb 2023 00:41:58 +0100 Subject: [PATCH] OTAManager: Pick the right binaries on Kindles running on the Bellatrix platform Re: https://github.com/koreader/koreader/pull/4539#issuecomment-1411707712 --- frontend/ui/otamanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/otamanager.lua b/frontend/ui/otamanager.lua index 8e318ccbf..62e0fe399 100644 --- a/frontend/ui/otamanager.lua +++ b/frontend/ui/otamanager.lua @@ -62,9 +62,9 @@ function OTAManager:_isKindleWarioOrMore() -- but for Wario (Cortex A9), matching that to 0xc09 would work, too. -- On the other hand, I'm already using the Hardware match in MRPI, so, that sealed the deal ;). - -- If we've got a Hardware string, check if it mentions an i.MX 6 or 7... + -- If we've got a Hardware string, check if it mentions an i.MX 6 or 7 or a MTK... if cpu_hw then - if cpu_hw:find("i.MX%s?[6-7]") then + if cpu_hw:find("i%.MX%s?[6-7]") or cpu_hw:find("MT8110") then return true else return false