mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
bootmisc.h: use "date -s" to set time
without "-s", 201009031653 would be interpreted incorrectly by date and then we saw below warning: date: invalid date 165320100903 Fix [BUGID #265] Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
e5fe433b14
commit
41d02d40ed
@@ -71,7 +71,7 @@ then
|
||||
read TIMESTAMP < /etc/timestamp2
|
||||
NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE + 10000 \)`
|
||||
if [ $NEEDUPDATE -eq 1 ]; then
|
||||
date $TIMESTAMP
|
||||
date -s $TIMESTAMP
|
||||
/etc/init.d/hwclock.sh stop
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user