You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sync_time_ntp(){
echo"Time before sync: $(date)"
sudo systemctl restart chronyd
sleep 8
echo"Time after sync: $(date)"
}
This should use sudo chronyc makestep or sudo chronyc -a makestep to step the system clock immediately rather than restarting chronyd and adding an arbitary sleep period.
The text was updated successfully, but these errors were encountered:
I was just testing sudo chronyc makestep on the latest image from an R4 powered via OTG.
I flashed the microSD. Booted the R4 without Ethernet. Connected the USB NIC to the Wi-Fi via wpa_supplicant.
chronyc makestep wasn't stepping the time to the current time correctly, but restarting chronyd did.
joshschmelzle
changed the title
wpdev.sh: sync_time_ntp() should use chronyc makestep
wpdev.sh: sync_time_ntp() should use chronyc makestep (maybe not)
Feb 16, 2024
So that this comment doesn't get burried.
This should use
sudo chronyc makestep
orsudo chronyc -a makestep
to step the system clock immediately rather than restartingchronyd
and adding an arbitary sleep period.The text was updated successfully, but these errors were encountered: