summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/xserver-kdrive-common/xserver-nodm-init
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-09-28 09:25:37 +0000
committerRichard Purdie <richard@openedhand.com>2005-09-28 09:25:37 +0000
commitc335f42133a0c16c2f9b5f9e7db0069694f8e96d (patch)
tree2881e82839e0e0b8ee745eaf775061f92047763d /openembedded/packages/xserver-kdrive-common/xserver-nodm-init
parent66e9ae79755cff1df9aca0f88982a765d749ac87 (diff)
downloadpoky-c335f42133a0c16c2f9b5f9e7db0069694f8e96d.tar.gz
Add xserver-nodm-init script, add udev+sysfsutils to meta-oh, fix typo in xserver-kdrive-common. The script calibrates the ts and starts the xserver but probbably does more than it should have to.
git-svn-id: https://svn.o-hand.com/repos/poky@47 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/xserver-kdrive-common/xserver-nodm-init')
-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