diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm')
-rwxr-xr-x | meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm new file mode 100755 index 0000000000..eeab55a71a --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |||
@@ -0,0 +1,48 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | killproc() { # 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 | |||
11 | |||
12 | |||
13 | case "$1" in | ||
14 | start) | ||
15 | # We don't want this script to block the rest of the boot process | ||
16 | if [ "$2" != "background" ]; then | ||
17 | $0 $1 background & | ||
18 | else | ||
19 | . /etc/profile | ||
20 | |||
21 | echo "Starting Xserver" | ||
22 | /etc/X11/Xserver & | ||
23 | |||
24 | export DISPLAY=:0 | ||
25 | |||
26 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] | ||
27 | do | ||
28 | /usr/bin/xtscal | ||
29 | done | ||
30 | |||
31 | /etc/X11/Xsession & | ||
32 | fi | ||
33 | ;; | ||
34 | |||
35 | stop) | ||
36 | echo "Stopping XServer" | ||
37 | killproc Xfbdev | ||
38 | killproc Xomap | ||
39 | killproc Xorg | ||
40 | killproc Xepson | ||
41 | ;; | ||
42 | |||
43 | *) | ||
44 | echo "usage: $0 { start | stop }" | ||
45 | ;; | ||
46 | esac | ||
47 | |||
48 | exit 0 | ||