diff options
Diffstat (limited to 'meta-oe/recipes-graphics/xserver-nodm-init')
-rw-r--r-- | meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb index d4a6b972f..17fe4d8d8 100644 --- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb +++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb | |||
@@ -3,7 +3,7 @@ LICENSE = "GPLv2" | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | SECTION = "x11" | 4 | SECTION = "x11" |
5 | 5 | ||
6 | PR = "r9" | 6 | PR = "r10" |
7 | 7 | ||
8 | SRC_URI = "file://xserver-nodm \ | 8 | SRC_URI = "file://xserver-nodm \ |
9 | file://xserver-nodm.service \ | 9 | file://xserver-nodm.service \ |
@@ -31,12 +31,10 @@ INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." | |||
31 | INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." | 31 | INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." |
32 | 32 | ||
33 | pkg_postinst_${PN}_append () { | 33 | pkg_postinst_${PN}_append () { |
34 | # can't do this offline | 34 | if [ -e ${base_bindir}/systemctl ] ; then |
35 | if [ "x$D" != "x" ]; then | 35 | # can't do this offline |
36 | exit 1 | 36 | [ "x$D" != "x" ] && exit 1 |
37 | fi | ||
38 | 37 | ||
39 | if [ -e /bin/systemctl ] ; then | ||
40 | systemctl enable xserver-nodm.service | 38 | systemctl enable xserver-nodm.service |
41 | fi | 39 | fi |
42 | } | 40 | } |