<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 25 June 2015 at 09:55, Li xin <span dir="ltr">&lt;<a href="mailto:lixin.fnst@cn.fujitsu.com" target="_blank">lixin.fnst@cn.fujitsu.com</a>&gt;</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 [ &quot;x$D&quot; != &quot;x&quot; ]; then<br>
+        OPTS=&quot;--root=$D&quot;<br>
+        if type systemctl &gt;/dev/null 2&gt;/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>