Kobo: Mimic Nickel's poweroff behavior on sunxi (#10122)

It goes through init, unlike on other models.

Re: #10121
reviewable/pr10128/r1
NiLuJe 1 year ago committed by GitHub
parent 8e9fc9953f
commit 15b236e3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1273,8 +1273,13 @@ function Kobo:powerOff()
-- Much like Nickel itself, disable the RTC alarm before powering down.
self.wakeup_mgr:unsetWakeupAlarm()
-- Then shut down without init's help
os.execute("sleep 1 && poweroff -f &")
if self:isSunxi() then
-- On sunxi, apparently, we *do* go through init
os.execute("sleep 1 && poweroff &")
else
-- Then shut down without init's help
os.execute("sleep 1 && poweroff -f &")
end
end
function Kobo:reboot()

Loading…
Cancel
Save