mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
xserver-nodm-init: only enable for runlevel 5
Runlevel 5 is traditionally graphical. If it starts in runlevel 2 or 3 systemd gets confused and adds it as a dependency of the multi-user target, not just the graphical target. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
57afda129b
commit
b6fcccb70a
@@ -1,4 +1,13 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: xserver
|
||||
# Required-Start: $local_fs $remote_fs dbus
|
||||
# Required-Stop: $local_fs $remote_fs
|
||||
# Default-Start: 5
|
||||
# Default-Stop: 0 1 2 3 6
|
||||
### END INIT INFO
|
||||
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ S = "${WORKDIR}"
|
||||
inherit allarch update-rc.d systemd
|
||||
|
||||
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 ."
|
||||
INITSCRIPT_PARAMS = "start 01 5 . stop 01 0 1 2 3 6 ."
|
||||
INITSCRIPT_PARAMS_shr = "start 90 5 . stop 90 0 1 2 3 6 ."
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
|
||||
Reference in New Issue
Block a user