summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-02-19 15:59:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-22 06:09:22 -0800
commitb1c887277c67a9a0fb08162edc4cc9aeeb8f400d (patch)
treef38f8bd242d97288af24f5303dbf63db07a6f619 /meta
parentc1aef57e200f04b33de16f37dca519720e7c8752 (diff)
downloadpoky-b1c887277c67a9a0fb08162edc4cc9aeeb8f400d.tar.gz
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] (From OE-Core rev: 416519ec595f59ebeafb95bed2546635cad41559) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/busybox/files/hwclock.sh2
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 cc6d2862ba..be5f94d86c 100644
--- a/meta/recipes-core/busybox/files/hwclock.sh
+++ b/meta/recipes-core/busybox/files/hwclock.sh
@@ -20,7 +20,7 @@
20 20
21[ ! -x /sbin/hwclock ] && exit 0 21[ ! -x /sbin/hwclock ] && exit 0
22 22
23. /etc/default/rcS 23[ -f /etc/default/rcS ] && . /etc/default/rcS
24 24
25[ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime" 25[ "$UTC" = "yes" ] && tz="--utc" || tz="--localtime"
26case "$1" in 26case "$1" in