[OE-core] [PATCH 2/3] sysklogd: various fixes so it starts/stops cleanly
Otavio Salvador
otavio at ossystems.com.br
Wed Feb 1 02:06:09 UTC 2012
On Tue, Jan 31, 2012 at 22:58, Joshua Lock <josh at linux.intel.com> 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: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120201/1e66e854/attachment-0002.html>
More information about the Openembedded-core
mailing list