From 416519ec595f59ebeafb95bed2546635cad41559 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Tue, 19 Feb 2013 15:59:40 +0800 Subject: 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 Signed-off-by: Saul Wold --- meta/recipes-core/busybox/files/hwclock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-core') 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 -- cgit v1.2.3