GuSec
Member
To my surprise, ntpdate/ntpd isn't avaible, but I found /usr/bin/rdate instead. So I've installed cron and root's crontab now looks like this for me:
(0.se is because my Pandora is a Swedish resident)
Is there some serious downside to this? Can (and should) I do it in a smarter way? The best would of course be to only have it sync when there's an actual wifi-connection, but I couldn't figure out a smart way to achieve this (my Pandora is connected pretty much all the time).
Anyone doing anything similar? Input?
Code:
# SYNC (SYS)TIME WITH SERVER AND SYNC (SYS)TIME WITH HARDWARE CLOCK
*/15 * * * * /usr/bin/rdate -ns 0.se.pool.ntp.org >/dev/null 2>&1 && hwclock -w >/dev/null 2>&1
(0.se is because my Pandora is a Swedish resident)
Is there some serious downside to this? Can (and should) I do it in a smarter way? The best would of course be to only have it sync when there's an actual wifi-connection, but I couldn't figure out a smart way to achieve this (my Pandora is connected pretty much all the time).
Anyone doing anything similar? Input?