summaryrefslogtreecommitdiff
path: root/packages/xserver-kdrive-common/xserver-nodm-init.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/xserver-kdrive-common/xserver-nodm-init.bb')
-rw-r--r--packages/xserver-kdrive-common/xserver-nodm-init.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/xserver-kdrive-common/xserver-nodm-init.bb b/packages/xserver-kdrive-common/xserver-nodm-init.bb
index bea21793a6..cba56d55a3 100644
--- a/packages/xserver-kdrive-common/xserver-nodm-init.bb
+++ b/packages/xserver-kdrive-common/xserver-nodm-init.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)"
LICENSE = "GPL"
SECTION = "x11"
PRIORITY = "optional"
-PR = "r9"
+PR = "r10"
SRC_URI = "file://xserver-nodm"
S = ${WORKDIR}
@@ -18,4 +18,13 @@ do_install() {
inherit update-rc.d
INITSCRIPT_NAME = "xserver-nodm"
-INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
+# start earlier under the assumption that xserver takes seconds to start
+INITSCRIPT_PARAMS = "start 5 5 2 . stop 20 0 1 6 ."
+
+pkg_postinst_${PN} () {
+if test "x$D" = "x"; then
+ for f in `ls /etc/rc?.d/S99${INITSCRIPT_NAME} 2>/dev/null`; do
+ mv $f `dirname $f`/S05${INITSCRIPT_NAME}
+ done
+fi
+}