I want to start a script, which set the system time automatically after booting.
I wrote the command date -s "12/31/12 23:59" in rc.d/rc.local. That didn't work. How to solve that?
|
|
|||||
|
migrated from stackoverflow.com Sep 10 '12 at 22:14
|
You are probably running ntp and it is setting the system time. You can try removing ntpd from startup at boot and you're system time should be |
|||
|
|
If you are developing for an embedded target, you most likely are using BusyBox as your shell. If you read the BusyBox command documentation you will see this for the
So you have to change the date/time format you use in the command to one of the recognized. |
|||
|
|
|
If your system is running a version of This is one of 8 special strings that it supports. Quoting the
This is far from being the only way to run something at boot time, but it's an alternative. |
|||
|
|