summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-09-03 16:37:20 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-03 18:17:45 +0100
commit41d02d40ed83c791e7a4c1d57d829d706af42e74 (patch)
tree7758fc577875a15f25aba28228ddd808ab12ff3f /meta/recipes-core
parente5fe433b1408ecb1e75c026e4babedd4d12606fa (diff)
downloadpoky-41d02d40ed83c791e7a4c1d57d829d706af42e74.tar.gz
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>
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
index bd11f9a2fc..162df2b87e 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
71 read TIMESTAMP < /etc/timestamp2 71 read TIMESTAMP < /etc/timestamp2
72 NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE + 10000 \)` 72 NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE + 10000 \)`
73 if [ $NEEDUPDATE -eq 1 ]; then 73 if [ $NEEDUPDATE -eq 1 ]; then
74 date $TIMESTAMP 74 date -s $TIMESTAMP
75 /etc/init.d/hwclock.sh stop 75 /etc/init.d/hwclock.sh stop
76 fi 76 fi
77fi 77fi