[oe-commits] Martin Dietze : initscripts: fixed bootmisc.sh so that hwclock. sh is only called if installed

git version control git at git.openembedded.org
Wed May 27 19:51:17 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: cb901464380fb0d06133f1c644d20653ad74c90f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=cb901464380fb0d06133f1c644d20653ad74c90f

Author: Martin Dietze <martin at the-little-red-haired-girl.org>
Date:   Sat May 23 13:28:58 2009 +0200

initscripts: fixed bootmisc.sh so that hwclock.sh is only called if installed

---

 recipes/initscripts/initscripts-1.0/bootmisc.sh |    2 +-
 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 dde1209..d19477b 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"`





More information about the Openembedded-commits mailing list