From 41d02d40ed83c791e7a4c1d57d829d706af42e74 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Fri, 3 Sep 2010 16:37:20 +0800 Subject: 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 --- meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-core/initscripts') diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh index bd11f9a2f..162df2b87 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh @@ -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 -- cgit v1.2.3