mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
xserver-nodm-init: exit 1 only if systemd is installed and use ${base_bindir}
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
d7f068e524
commit
d07327e658
@@ -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 ."
|
|||||||
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user