diff options
author | Matthew Allum <mallum@openedhand.com> | 2006-08-23 10:44:12 +0000 |
---|---|---|
committer | Matthew Allum <mallum@openedhand.com> | 2006-08-23 10:44:12 +0000 |
commit | 521b22d2f817b603fa0948199624699031fcf832 (patch) | |
tree | fcdec27c11f9e3b3bcd46d962a1315ea2afcc7cc /meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |
parent | 2d5a5e5ba93b6b1ce8ddf092c7d4839e525d48ff (diff) | |
download | poky-521b22d2f817b603fa0948199624699031fcf832.tar.gz |
Clean up X start up scripts. Remove uneeded files. Use xinit to more safely launch Xserver and XSession scripts
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@632 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 | 24 |
1 files changed, 8 insertions, 16 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 index eeab55a71a..be405bc008 100755 --- a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm +++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |||
@@ -8,8 +8,6 @@ killproc() { # kill the named process(es) | |||
8 | [ "$pid" != "" ] && kill $pid | 8 | [ "$pid" != "" ] && kill $pid |
9 | } | 9 | } |
10 | 10 | ||
11 | |||
12 | |||
13 | case "$1" in | 11 | case "$1" in |
14 | start) | 12 | start) |
15 | # We don't want this script to block the rest of the boot process | 13 | # We don't want this script to block the rest of the boot process |
@@ -20,28 +18,22 @@ case "$1" in | |||
20 | 18 | ||
21 | echo "Starting Xserver" | 19 | echo "Starting Xserver" |
22 | /etc/X11/Xserver & | 20 | /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 | 21 | fi |
33 | ;; | 22 | ;; |
34 | 23 | ||
35 | stop) | 24 | stop) |
36 | echo "Stopping XServer" | 25 | echo "Stopping XServer" |
37 | killproc Xfbdev | 26 | killproc xinit |
38 | killproc Xomap | 27 | ;; |
39 | killproc Xorg | 28 | |
40 | killproc Xepson | 29 | restart) |
30 | $0 stop | ||
31 | sleep 1 | ||
32 | $0 start | ||
41 | ;; | 33 | ;; |
42 | 34 | ||
43 | *) | 35 | *) |
44 | echo "usage: $0 { start | stop }" | 36 | echo "usage: $0 { start | stop | restart }" |
45 | ;; | 37 | ;; |
46 | esac | 38 | esac |
47 | 39 | ||