On Tue, Jan 31, 2012 at 22:58, Joshua Lock <[email protected]> wrote:

> @@ -46,12 +46,18 @@ do_install () {
>  pkg_preinst_${PN} () {
>        # all this is needed to avoid sysmlink errors,
>        # because update-rc.d runs before pkg_postinst
> -       if [ -e ${sysconfdir}/init.d/syslog -a ! -L
> ${sysconfdir}/init.d/syslog ]; then
> +       if test "x$D" != "x"; then
> +               ETC=$D/${sysconfdir}
> +       else
> +               ETC=${sysconfdir}
> +       fi
>

You might use

ETC=$D${sysconfdir}

and avoid the if block as a whole.


-- 
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to