mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
xserver-nodm-init: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Koen Kooi
parent
34fe984fc6
commit
42e00e8ffd
@@ -1 +0,0 @@
|
||||
HOME=/home/root
|
||||
@@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=Xserver startup with a display manager
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/xserver-nodm
|
||||
ExecStart=/usr/bin/xinit /etc/X11/Xsession -- /etc/X11/Xserver
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -3,34 +3,22 @@ LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
SECTION = "x11"
|
||||
|
||||
PR = "r16"
|
||||
PR = "r17"
|
||||
|
||||
SRC_URI = "file://xserver-nodm \
|
||||
file://xserver-nodm.service \
|
||||
file://xserver-nodm.conf \
|
||||
file://gplv2-license.patch \
|
||||
"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
inherit allarch
|
||||
|
||||
inherit update-rc.d systemd
|
||||
inherit allarch update-rc.d
|
||||
|
||||
INITSCRIPT_NAME = "xserver-nodm"
|
||||
INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
|
||||
INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||
SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install xserver-nodm ${D}${sysconfdir}/init.d
|
||||
install -d ${D}${sysconfdir}/default
|
||||
install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
|
||||
}
|
||||
|
||||
FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm"
|
||||
|
||||
RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
|
||||
RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"
|
||||
|
||||
Reference in New Issue
Block a user