From cb901464380fb0d06133f1c644d20653ad74c90f Mon Sep 17 00:00:00 2001 From: Martin Dietze Date: Sat, 23 May 2009 13:28:58 +0200 Subject: initscripts: fixed bootmisc.sh so that hwclock.sh is only called if installed --- recipes/initscripts/initscripts-1.0/bootmisc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/initscripts/initscripts-1.0/bootmisc.sh') 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"` -- cgit v1.2.3