v86d: mask fbsetup when necessary

When 'sysvinit' and 'systemd' are both in DISTRO_FEATURES, we need
to prevent the init script from running via systemd.
This is because that the functionality has been implemented internally
in systemd.

(From OE-Core rev: 2236678e38b22b763de8322d90585cbf648a448c)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi 2014-09-03 15:09:18 +08:00 committed by Richard Purdie
parent c57427b4a7
commit 2caee0c68a
1 changed files with 10 additions and 0 deletions

View File

@ -57,3 +57,13 @@ python __anonymous() {
}
inherit update-rc.d
DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
pkg_postinst_${PN} () {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then
if [ -n "$D" ]; then
OPTS="--root=$D"
fi
systemctl $OPTS mask fbsetup.service
fi
}