diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-04-16 23:06:40 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-05-02 21:16:56 +0200 |
commit | 435874e56cd4a82448ebb43d090fb68df497d16f (patch) | |
tree | 10770a4f3bb1d2233180f5739d2f3cbfad1bb593 /recipes/xserver-kdrive-common/xserver-nodm-init | |
parent | b491380a2ae06bcd1fe0982904363000524e9c67 (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/xserver-nodm-init')
-rwxr-xr-x | recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 50 |
1 files changed, 0 insertions, 50 deletions
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 |