diff options
-rw-r--r-- | meta/recipes-core/psplash/psplash_git.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-core/psplash/psplash_git.bb b/meta/recipes-core/psplash/psplash_git.bb index 628ced4d49..4e8f071a8e 100644 --- a/meta/recipes-core/psplash/psplash_git.bb +++ b/meta/recipes-core/psplash/psplash_git.bb | |||
@@ -109,3 +109,13 @@ FILES_${PN} += "/mnt/.psplash" | |||
109 | 109 | ||
110 | INITSCRIPT_NAME = "psplash.sh" | 110 | INITSCRIPT_NAME = "psplash.sh" |
111 | INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." | 111 | INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." |
112 | |||
113 | DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}" | ||
114 | pkg_postinst_${PN} () { | ||
115 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
116 | if [ -n "$D" ]; then | ||
117 | OPTS="--root=$D" | ||
118 | fi | ||
119 | systemctl $OPTS mask psplash.service | ||
120 | fi | ||
121 | } | ||