device/kobo: add Kobo:otaModel() like on Kindle for uniformity (#15713)
Follow-up to #12401.
This commit is contained in:
1 parent
7243a1f147
commit
388a057f0a
1 file changed
+10
-6
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user