Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Isn't this exactly what the "-w" option to your hwclock does? Commented Feb 27, 2019 at 4:10
  • The -w option for BusyBox hwclock takes no arguments and simply writes the system clock into the rtc. I needed the ability to load an arbitrary time into hwclock and then load that into the system on the next boot. Commented Feb 27, 2019 at 5:38
  • Usually, the "-r" option is run at boot time, and the "-w" option is run at shutdown (via init scripts). If your system is set up this way, you could just set the system time and reboot (bit of a sledge-hammer approach, I know - but would do the job) Commented Feb 27, 2019 at 9:21