[oe-commits] Chen Qi : hwclock.sh: check for the existence of /etc/default/rcS
git at git.openembedded.org
git at git.openembedded.org
Fri Feb 22 14:09:19 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 416519ec595f59ebeafb95bed2546635cad41559
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=416519ec595f59ebeafb95bed2546635cad41559
Author: Chen Qi <Qi.Chen at windriver.com>
Date: Tue Feb 19 15:59:40 2013 +0800
hwclock.sh: check for the existence of /etc/default/rcS
/etc/default/rcS might be missing if the init manager is not sysvinit.
So we have to check for the existence of this file before sourcing it.
[YOCTO #3697]
Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-core/busybox/files/hwclock.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-core/busybox/files/hwclock.sh b/meta/recipes-core/busybox/files/hwclock.sh
index cc6d286..be5f94d 100644
--- a/meta/recipes-core/busybox/files/hwclock.sh
+++ b/meta/recipes-core/busybox/files/hwclock.sh
@@ -20,7 +20,7 @@
[ ! -x /sbin/hwclock ] && exit 0
-. /etc/default/rcS
+[ -f /etc/default/rcS ] && . /etc/default/rcS
[ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
case "$1" in
More information about the Openembedded-commits
mailing list