diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 2b445121a..bc6dbe53b 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -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)