From: Martin Dietze Date: Sat, 23 May 2009 11:28:58 +0000 (+0200) Subject: initscripts: fixed bootmisc.sh so that hwclock.sh is only called if installed X-Git-Tag: Release-2010-05/1~3365^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb901464380fb0d06133f1c644d20653ad74c90f;p=openembedded.git initscripts: fixed bootmisc.sh so that hwclock.sh is only called if installed --- 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"`