initscripts: fixed bootmisc.sh so that hwclock.sh is only called if installed
authorMartin Dietze <martin@the-little-red-haired-girl.org>
Sat, 23 May 2009 11:28:58 +0000 (13:28 +0200)
committermd <md@freiheit.com>
Wed, 27 May 2009 19:51:01 +0000 (21:51 +0200)
recipes/initscripts/initscripts-1.0/bootmisc.sh

index dde1209..d19477b 100755 (executable)
@@ -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"`