mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-16 06:30:16 +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 +1 @@
|
||||
HOME=/home/root
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
[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
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
PRINC := "${@int(PRINC) + 1}"
|
||||
|
||||
inherit systemd
|
||||
|
||||
SRC_URI += "file://xserver-nodm.service \
|
||||
file://xserver-nodm.conf \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}${sysconfdir}/default
|
||||
install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
|
||||
}
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||
SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service"
|
||||
|
||||
FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm"
|
||||
|
||||
RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"
|
||||
Reference in New Issue
Block a user