Skip to content

Commit

Permalink
timesync: fix ntpd sync after RTC reset
Browse files Browse the repository at this point in the history
When the battery is fully drained in Kobo devices, the RTC is
reset. After such an occurence, synchronisation via ntpd failed
because ntpd refuses to change the system time if the offset
exceeds a threshold (1000s by default).
  • Loading branch information
lgeek committed Apr 1, 2017
1 parent 11d6bfb commit 3b7836d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/timesync.koplugin/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local Device = require("device")
local command
-- TODO(hzj-jie): Does pocketbook provide ntpdate?
if Device:isKobo() then
command = "ntpd -q -n -p pool.ntp.org"
command = "ntpd -q -n -g -p pool.ntp.org"
elseif Device:isKindle() or Device:isPocketBook() then
command = "ntpdate pool.ntp.org"
else
Expand Down

0 comments on commit 3b7836d

Please sign in to comment.