diff options
author | Richard Purdie <richard@openedhand.com> | 2005-09-28 09:25:37 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-09-28 09:25:37 +0000 |
commit | c335f42133a0c16c2f9b5f9e7db0069694f8e96d (patch) | |
tree | 2881e82839e0e0b8ee745eaf775061f92047763d /openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |
parent | 66e9ae79755cff1df9aca0f88982a765d749ac87 (diff) | |
download | openembedded-core-c335f42133a0c16c2f9b5f9e7db0069694f8e96d.tar.gz openembedded-core-c335f42133a0c16c2f9b5f9e7db0069694f8e96d.tar.bz2 openembedded-core-c335f42133a0c16c2f9b5f9e7db0069694f8e96d.zip |
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/xserver-nodm')
-rwxr-xr-x | openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 38 |
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 @@ +#!/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 +} + +case "$1" in + start) + echo "Starting Xserver" + /etc/X11/Xserver & + export DISPLAY=:0 + + while [ ! -f /etc/pointercal ] + do + /usr/bin/xtscal + done + + /etc/X11/Xsession & + ;; + + stop) + echo "Stopping XServer" + killproc /usr/bin/Xfbdev + killproc /usr/bin/Xomap + killproc /usr/bin/Xorg + killproc /usr/bin/Xepson + ;; + + *) + echo "usage: $0 { start | stop }" + ;; +esac + +exit 0 |