mirror of
https://git.yoctoproject.org/poky
synced 2026-04-08 08:02:23 +02:00
initscripts: Properly format date when set from timestamp
Reformat date, as stored in /etc/timestamp, to match CLI format. (From OE-Core rev: 7aa4c51089cc4a2811bd11842647839d1e4b1e95) Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1abce24c1f
commit
8b07ab0cea
@@ -71,7 +71,7 @@ then
|
||||
SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M`
|
||||
read TIMESTAMP < /etc/timestamp
|
||||
if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then
|
||||
date -u $TIMESTAMP
|
||||
date -u ${TIMESTAMP#????}${TIMESTAMP%????????}
|
||||
/etc/init.d/hwclock.sh stop
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
|
||||
SECTION = "base"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
PR = "r131"
|
||||
PR = "r132"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user