Commit d07327e6 authored by Otavio Salvador's avatar Otavio Salvador Committed by Koen Kooi

xserver-nodm-init: exit 1 only if systemd is installed and use ${base_bindir}

Signed-off-by: default avatarOtavio Salvador <otavio@ossystems.com.br>
Signed-off-by: default avatarKoen Kooi <koen@dominion.thruhere.net>
parent d7f068e5
...@@ -3,7 +3,7 @@ LICENSE = "GPLv2" ...@@ -3,7 +3,7 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
SECTION = "x11" SECTION = "x11"
PR = "r9" PR = "r10"
SRC_URI = "file://xserver-nodm \ SRC_URI = "file://xserver-nodm \
file://xserver-nodm.service \ file://xserver-nodm.service \
...@@ -31,12 +31,10 @@ INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." ...@@ -31,12 +31,10 @@ INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
pkg_postinst_${PN}_append () { pkg_postinst_${PN}_append () {
# can't do this offline if [ -e ${base_bindir}/systemctl ] ; then
if [ "x$D" != "x" ]; then # can't do this offline
exit 1 [ "x$D" != "x" ] && exit 1
fi
if [ -e /bin/systemctl ] ; then
systemctl enable xserver-nodm.service systemctl enable xserver-nodm.service
fi fi
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment