summaryrefslogtreecommitdiff
path: root/recipes/xserver-kdrive-common
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-kdrive-common
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-kdrive-common')
-rw-r--r--recipes/xserver-kdrive-common/xserver-nodm-init.bb31
-rwxr-xr-xrecipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm50
2 files changed, 0 insertions, 81 deletions
diff --git a/recipes/xserver-kdrive-common/xserver-nodm-init.bb b/recipes/xserver-kdrive-common/xserver-nodm-init.bb
deleted file mode 100644
index 01bdd5559c..0000000000
--- a/recipes/xserver-kdrive-common/xserver-nodm-init.bb
+++ /dev/null
@@ -1,31 +0,0 @@
-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
-}
diff --git a/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
deleted file mode 100755
index 1f0fa47be6..0000000000
--- a/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-killproc() { # kill the named process(es)
- pid=`/bin/ps -e x |
- /bin/grep $1 |
- /bin/grep -v grep |
- /bin/sed -e 's/^ *//' -e 's/ .*//'`
- [ "$pid" != "" ] && kill $pid
-}
-
-for x in $(cat /proc/cmdline); do
- case $x in
- x11=false)
- echo "X Server disabled"
- exit 0;
- ;;
- esac
-done
-
-case "$1" in
- start)
- # We don't want this script to block the rest of the boot process
- if [ "$2" != "background" ]; then
- $0 $1 background &
- else
- . /etc/profile
- [ -z $LOGNAME ] && export LOGNAME=root && export HOME=/home/root
- [ -z $HOME ] && export HOME=/home/$LOGNAME
- echo "Starting Xserver"
- /etc/X11/Xserver &
- fi
- ;;
-
- stop)
- echo "Stopping XServer"
- killproc xinit
- ;;
-
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
-
- *)
- echo "usage: $0 { start | stop | restart }"
- ;;
-esac
-
-exit 0