]> code.ossystems Code Review - openembedded-core.git/commit
initscripts: Make /etc/timestamp consistent again.
authorGary Thomas <gary@mlbassoc.com>
Fri, 10 Feb 2012 16:16:05 +0000 (09:16 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 23:59:14 +0000 (23:59 +0000)
commit5aab6653c9afa05e7c1b3ccd6bd34aec05c2a6f8
tree55628b37f7426f9a50719e19eb21034f1ff4bd89
parenta101bc85adcc915f151348107e850b8998a395b0
initscripts: Make /etc/timestamp consistent again.

Commit cc8695 changed the way timestamps were handled
and added some extra munging to be able to compare them
reliably.  This change makes the timestamp value the same
everywhere and simplifies how the check to set the system
clock based on the timestamp is done.

Also, if the value stored in /etc/timestamp is newer
[at all] than the current system time, set the system clock
from the stored value, down to the minute, not just the day.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh
meta/recipes-core/initscripts/initscripts_1.0.bb