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:13 -0800 |
commit | 416519ec595f59ebeafb95bed2546635cad41559 (patch) | |
tree | 01e9f217a694a02b41dac2cb1e56ec599ed7da1a /meta | |
parent | f8bf3c65327c6e04c19a7dda623c7433f5d97417 (diff) | |
download | openembedded-core-416519ec595f59ebeafb95bed2546635cad41559.tar.gz openembedded-core-416519ec595f59ebeafb95bed2546635cad41559.tar.bz2 openembedded-core-416519ec595f59ebeafb95bed2546635cad41559.zip |
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@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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 cc6d2862ba..be5f94d86c 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 |