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:
Dan McGregor
2015-02-04 14:29:19 -06:00
committed by Martin Jansa
parent 57afda129b
commit b6fcccb70a
2 changed files with 11 additions and 2 deletions
@@ -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