device/kobo: add Kobo:otaModel() like on Kindle for uniformity (#15713)

Follow-up to #12401.
This commit is contained in:
Frans de Jonge authored and GitHub committed 2026-07-21 18:26:05 +02:00
1 parent 7243a1f147
commit 388a057f0a
1 file changed
+10 -6
+10 -6
View File
@@ -978,17 +978,21 @@ function Kobo:init()
self:toggleKeyRepeat(false)
end
-- Switch to the proper packages on FW 5.x
-- NOTE: We don't distribute kobov4 binaries, the omission is on purpose.
if util.fileExists("/usr/bin/hwdetect.sh") then
self.ota_model = "kobov5"
end
-- Finally, Let Generic properly setup the standard stuff.
-- (Of particular import, this needs to come *after* we've set our input hooks, so that the viewport translation runs last).
Generic.init(self)
end
function Kobo:otaModel()
local model = "kobo"
-- Switch to the proper packages on FW 5.x
-- NOTE: We don't distribute kobov4 binaries, the omission is on purpose.
if util.fileExists("/usr/bin/hwdetect.sh") then
model = "kobov5"
end
return model, "ota"
end
function Kobo:exit()
-- Re-enable key repeat on exit, that's the default state
self:toggleKeyRepeat(true)