aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Dietze <martin@the-little-red-haired-girl.org>2009-05-23 13:28:58 +0200
committerMartin Dietze <mdietze@gmail.com>2013-03-02 17:26:07 +0100
commitb1dd28eeee473e69f46ac0de6eca602e993e37b1 (patch)
tree691b237bf7b1246fdca0c42b34b1ef07ce8598ba
parente63ab27166c1e8193ba6a13e787a9c1652a4ceb9 (diff)
downloadopenembedded-b1dd28eeee473e69f46ac0de6eca602e993e37b1.tar.gz
openembedded-b1dd28eeee473e69f46ac0de6eca602e993e37b1.tar.bz2
openembedded-b1dd28eeee473e69f46ac0de6eca602e993e37b1.zip
initscripts: fixed bootmisc.sh so that hwclock.sh is only called if installed
-rwxr-xr-xrecipes/initscripts/initscripts-1.0/bootmisc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/initscripts/initscripts-1.0/bootmisc.sh b/recipes/initscripts/initscripts-1.0/bootmisc.sh
index dde1209be5..d19477be87 100755
--- a/recipes/initscripts/initscripts-1.0/bootmisc.sh
+++ b/recipes/initscripts/initscripts-1.0/bootmisc.sh
@@ -66,7 +66,7 @@ fi
# Set the system clock from hardware clock
# If the timestamp is 1 day or more recent than the current time,
# use the timestamp instead.
-/etc/init.d/hwclock.sh start
+test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start
if test -e /etc/timestamp
then
SYSTEMDATE=`date "+%Y%m%d"`