On Fri, Jan 25, 2013 at 6:50 PM, Burton, Ross <ross.bur...@intel.com> wrote:
> Hi,
>
> Been chatting to Richard.  How about systemd ships a symlink to
> multi-user, and the X11 init script packages change the symlink to
> graphical in their postinst.
>
> (we must remember to put this in the release notes for anyone who has
> a custom X init script)
>
> Ross
>
Have not yet tested but how about:

pkg_postinst_systemd () {
if [ -n "$D" ]; then
        # no display-manager.service around?
        if [ ! -e ${D}${systemd_unitdir}/systemd/system/display-manager.service 
-a \
             ! grep 'Alias=display-manager.service'
${D}${systemd_unitdir}/systemd/system ]; then
                ln -s ${systemd_unitdir}/system/multi-user.target
${D}${systemd_unitdir}/systemd/system/default.target
        fi
fi

...

Andreas

_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to