summaryrefslogtreecommitdiff
path: root/recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2010-04-16 23:06:40 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2010-05-02 21:16:56 +0200
commit435874e56cd4a82448ebb43d090fb68df497d16f (patch)
tree10770a4f3bb1d2233180f5739d2f3cbfad1bb593 /recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb
parentb491380a2ae06bcd1fe0982904363000524e9c67 (diff)
xserver-nodm-init: rename old as 1.0, add version compatible with xserver-common as 2.0 (from buglabs)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb')
-rw-r--r--recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb b/recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb
new file mode 100644
index 0000000000..01bdd5559c
--- /dev/null
+++ b/recipes/xserver-nodm-init/xserver-nodm-init_1.0.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Simple Xserver Init Script (no dm)"
+LICENSE = "GPL"
+SECTION = "x11"
+PRIORITY = "optional"
+PR = "r11"
+RDEPENDS_${PN} = "procps"
+
+SRC_URI = "file://xserver-nodm"
+S = ${WORKDIR}
+
+PACKAGE_ARCH = "all"
+
+do_install() {
+ install -d ${D}/etc
+ install -d ${D}/etc/init.d
+ install xserver-nodm ${D}/etc/init.d
+}
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "xserver-nodm"
+# 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
+}