<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 25 June 2015 at 09:55, Li xin <span dir="ltr"><<a href="mailto:lixin.fnst@cn.fujitsu.com" target="_blank">lixin.fnst@cn.fujitsu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">+pkg_postinst_${PN}-uuidd () {<br>
+ if [ "x$D" != "x" ]; then<br>
+ OPTS="--root=$D"<br>
+ if type systemctl >/dev/null 2>/dev/null; then<br>
+ systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}<br>
+ fi<br>
+ exit 1<br>
+ fi<br>
+<br>
+ chown uuidd.uuidd ${sbindir}/uuidd<br>
+ chmod g+s ${libdir}/libuuid<br>
+}</div></blockquote><div><br></div><div>The systemd class handles the systemctl invocation for you, or would if you set SYSTEMD_PACKAGES correctly.</div><div><br></div><div>Ross </div></div></div></div>