]> git.openpandora.org Git - openembedded.git/commitdiff
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 dde1209be581c0f109e371e3e957e8a18cf6dbc0..d19477be873d46e62348e2147e4c4e9da7d215b2 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"`