diff options
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh index 162df2b87e..03fd67c67e 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh @@ -65,13 +65,13 @@ fi # If the timestamp is 1 day or more recent than the current time, # use the timestamp instead. /etc/init.d/hwclock.sh start -if test -e /etc/timestamp2 +if test -e /etc/timestamp then - SYSTEMDATE=`date "+%Y%m%d%2H%2M"` - read TIMESTAMP < /etc/timestamp2 + SYSTEMDATE=`date -u +%2m%2d%2H%2M%4Y` + read TIMESTAMP < /etc/timestamp NEEDUPDATE=`expr \( $TIMESTAMP \> $SYSTEMDATE + 10000 \)` if [ $NEEDUPDATE -eq 1 ]; then - date -s $TIMESTAMP + date -u $TIMESTAMP /etc/init.d/hwclock.sh stop fi fi |