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:35 +0000 (23:59 +0000)
commit68cb560ed36349e5283ffa0948e4b2ee5091b98c
tree188c704844dd8c339551685653e5dd763c19a475
parenta049edd50694605987d3ceeb1597bfc43273d7df
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.

(From OE-Core rev: 5aab6653c9afa05e7c1b3ccd6bd34aec05c2a6f8)

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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