On 25 June 2015 at 09:55, Li xin <[email protected]> wrote: > +pkg_postinst_${PN}-uuidd () { > + if [ "x$D" != "x" ]; then > + OPTS="--root=$D" > + if type systemctl >/dev/null 2>/dev/null; then > + systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE} > + fi > + exit 1 > + fi > + > + chown uuidd.uuidd ${sbindir}/uuidd > + chmod g+s ${libdir}/libuuid > +} >
The systemd class handles the systemctl invocation for you, or would if you set SYSTEMD_PACKAGES correctly. Ross
-- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
