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"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
SECTION = "x11"
PR = "r9"
PR = "r10"
SRC_URI = "file://xserver-nodm \
file://xserver-nodm.service \
......@@ -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 ."
pkg_postinst_${PN}_append () {
if [ -e ${base_bindir}/systemctl ] ; then
# can't do this offline
if [ "x$D" != "x" ]; then
exit 1
fi
[ "x$D" != "x" ] && exit 1
if [ -e /bin/systemctl ] ; then
systemctl enable xserver-nodm.service
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