diff options
Diffstat (limited to 'meta/recipes-bsp/keymaps/keymaps_1.0.bb')
-rw-r--r-- | meta/recipes-bsp/keymaps/keymaps_1.0.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-bsp/keymaps/keymaps_1.0.bb b/meta/recipes-bsp/keymaps/keymaps_1.0.bb index a3f2d89b26..925161b5d2 100644 --- a/meta/recipes-bsp/keymaps/keymaps_1.0.bb +++ b/meta/recipes-bsp/keymaps/keymaps_1.0.bb | |||
@@ -35,4 +35,14 @@ do_install () { | |||
35 | fi | 35 | fi |
36 | } | 36 | } |
37 | 37 | ||
38 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}" | ||
39 | pkg_postinst_${PN} () { | ||
40 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then | ||
41 | if [ -n "$D" ]; then | ||
42 | OPTS="--root=$D" | ||
43 | fi | ||
44 | systemctl $OPTS mask keymap.service | ||
45 | fi | ||
46 | } | ||
47 | |||
38 | ALLOW_EMPTY_${PN} = "1" | 48 | ALLOW_EMPTY_${PN} = "1" |