[OE-core] [PATCH 1/1] hwclock.sh: check for the existence of /etc/default/rcS
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Feb 19 11:10:16 UTC 2013
On 19 February 2013 08:59, <Qi.Chen at windriver.com> wrote:
> From: Chen Qi <Qi.Chen at windriver.com>
>
> /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 at windriver.com>
> ---
> 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
I'd make that -r fwiw.
More information about the Openembedded-core
mailing list