diff options
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index cf17b62234..db47ede0be 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
@@ -62,6 +62,14 @@ RRECOMMENDS_${PN}-lib = "${PN}" | |||
62 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" | 62 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" |
63 | 63 | ||
64 | pkg_postinst_dbus() { | 64 | pkg_postinst_dbus() { |
65 | # If both systemd and sysvinit are enabled, mask the dbus-1 init script | ||
66 | if ${@base_contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then | ||
67 | if [ -n "$D" ]; then | ||
68 | OPTS="--root=$D" | ||
69 | fi | ||
70 | systemctl $OPTS mask dbus-1.service | ||
71 | fi | ||
72 | |||
65 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then | 73 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then |
66 | /etc/init.d/populate-volatile.sh update | 74 | /etc/init.d/populate-volatile.sh update |
67 | fi | 75 | fi |