summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
index 5b86e798b6..4f76cb4b28 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh
@@ -65,14 +65,14 @@ fi
65# Set the system clock from hardware clock 65# Set the system clock from hardware clock
66# If the timestamp is more recent than the current time, 66# If the timestamp is more recent than the current time,
67# use the timestamp instead. 67# use the timestamp instead.
68/etc/init.d/hwclock.sh start 68test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start
69if test -e /etc/timestamp 69if test -e /etc/timestamp
70then 70then
71 SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M` 71 SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M`
72 read TIMESTAMP < /etc/timestamp 72 read TIMESTAMP < /etc/timestamp
73 if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then 73 if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then
74 date -u ${TIMESTAMP#????}${TIMESTAMP%????????} 74 date -u ${TIMESTAMP#????}${TIMESTAMP%????????}
75 /etc/init.d/hwclock.sh stop 75 test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh stop
76 fi 76 fi
77fi 77fi
78: exit 0 78: exit 0