mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-10 08:04:56 +02:00
* when it's executed from init then HOME is set to '/' * shadow/agetty set HOME fine and Xinit is doing the same, but for xinit Xsession it didn't work Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
41 lines
1006 B
BlitzBasic
41 lines
1006 B
BlitzBasic
DESCRIPTION = "Simple Xserver Init Script (no dm)"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
SECTION = "x11"
|
|
|
|
PR = "r11"
|
|
|
|
SRC_URI = "file://xserver-nodm \
|
|
file://xserver-nodm.service \
|
|
file://gplv2-license.patch \
|
|
"
|
|
S = ${WORKDIR}
|
|
|
|
inherit allarch
|
|
|
|
do_install() {
|
|
install -d ${D}${sysconfdir}/init.d
|
|
install xserver-nodm ${D}${sysconfdir}/init.d
|
|
|
|
install -d ${D}${base_libdir}/systemd/system
|
|
install -m 0644 xserver-nodm.service ${D}${base_libdir}/systemd/system/
|
|
}
|
|
|
|
RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
|
|
FILES_${PN} += "${base_libdir}/systemd/system/"
|
|
|
|
inherit 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 ."
|
|
|
|
pkg_postinst_${PN}_append () {
|
|
if [ -e ${base_bindir}/systemctl ] ; then
|
|
# can't do this offline
|
|
[ "x$D" != "x" ] && exit 1
|
|
|
|
systemctl enable xserver-nodm.service
|
|
fi
|
|
}
|