summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm')
-rwxr-xr-xopenembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm38
1 files changed, 38 insertions, 0 deletions
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
new file mode 100755
index 0000000000..dcafb9e98f
--- /dev/null
+++ b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
@@ -0,0 +1,38 @@
1#!/bin/sh
2
3killproc() { # kill the named process(es)
4 pid=`/bin/ps -e x |
5 /bin/grep $1 |
6 /bin/grep -v grep |
7 /bin/sed -e 's/^ *//' -e 's/ .*//'`
8 [ "$pid" != "" ] && kill $pid
9}
10
11case "$1" in
12 start)
13 echo "Starting Xserver"
14 /etc/X11/Xserver &
15 export DISPLAY=:0
16
17 while [ ! -f /etc/pointercal ]
18 do
19 /usr/bin/xtscal
20 done
21
22 /etc/X11/Xsession &
23 ;;
24
25 stop)
26 echo "Stopping XServer"
27 killproc /usr/bin/Xfbdev
28 killproc /usr/bin/Xomap
29 killproc /usr/bin/Xorg
30 killproc /usr/bin/Xepson
31 ;;
32
33 *)
34 echo "usage: $0 { start | stop }"
35 ;;
36esac
37
38exit 0