<div class="gmail_quote">On Tue, Jan 31, 2012 at 22:58, Joshua Lock <span dir="ltr">&lt;<a href="mailto:josh@linux.intel.com">josh@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@@ -46,12 +46,18 @@ do_install () {<br>
 pkg_preinst_${PN} () {<br>
        # all this is needed to avoid sysmlink errors,<br>
        # because update-rc.d runs before pkg_postinst<br>
-       if [ -e ${sysconfdir}/init.d/syslog -a ! -L ${sysconfdir}/init.d/syslog ]; then<br>
+       if test &quot;x$D&quot; != &quot;x&quot;; then<br>
+               ETC=$D/${sysconfdir}<br>
+       else<br>
+               ETC=${sysconfdir}<br>
+       fi<br></blockquote><div><br></div><div>You might use</div><div><br></div><div>ETC=$D${sysconfdir}</div><div><br></div><div>and avoid the if block as a whole.</div><div><br></div><div> </div></div>-- <br>Otavio Salvador                             O.S. Systems<br>
E-mail: <a href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a>  <a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a><br>Mobile: +55 53 9981-7854              <a href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br>
<br>