From patchwork Tue Feb 19 07:59:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] hwclock.sh: check for the existence of /etc/default/rcS Date: Tue, 19 Feb 2013 07:59:40 -0000 From: Qi.Chen@windriver.com X-Patchwork-Id: 44833 Message-Id: <6c5df3ee0d370bc7054d53832937ce70b6c9ee57.1361260478.git.Qi.Chen@windriver.com> To: Cc: Zhenfeng.Zhao@windriver.com From: Chen Qi /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 --- meta/recipes-core/busybox/files/hwclock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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