diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-02-19 15:59:40 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-22 06:09:22 -0800 |
commit | b1c887277c67a9a0fb08162edc4cc9aeeb8f400d (patch) | |
tree | f38f8bd242d97288af24f5303dbf63db07a6f619 /meta | |
parent | c1aef57e200f04b33de16f37dca519720e7c8752 (diff) | |
download | ast2050-yocto-poky-b1c887277c67a9a0fb08162edc4cc9aeeb8f400d.zip ast2050-yocto-poky-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.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 |