diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-03-09 14:09:56 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-03-09 14:46:08 -0700 |
commit | c206cfd1de94e2e79c1d9d42dc8f44f140d4c3f8 (patch) | |
tree | 10b51d7d2dbd0bbdc69ee6e665b0fbcd40536fc8 /rc.sysinit | |
parent | 5d0fb0ef703ca78f399aadce43dd813effda52f5 (diff) | |
download | initscripts-c206cfd1de94e2e79c1d9d42dc8f44f140d4c3f8.tar.xz |
Add adjtime handling to hwclock init
The hwclock man page recommends calling hwclock with --adjust
at start time, and periodically during system run. So let's do
that here.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -301,6 +301,7 @@ if [ "$TIMEZONE" != "" -a -e "/usr/share/zoneinfo/$TIMEZONE" ]; then /bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime fi +/sbin/hwclock --adjust #Adjust for system drift /sbin/hwclock $HWCLOCK_PARAMS stat_done |