diff options
author | Richard Purdie <richard@openedhand.com> | 2006-06-22 09:28:53 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-06-22 09:28:53 +0000 |
commit | 8c5be6ef146581a11f3262e05a5c60710afac66c (patch) | |
tree | eb367b7500bc4606c0c1b1b074e53511284c52fb | |
parent | 7869b57fd55e9e11028064ef4a6e2cb26d97480d (diff) | |
download | poky-8c5be6ef146581a11f3262e05a5c60710afac66c.tar.gz |
xserver-nodm: Run the script in the background so if xtscal locks, the rest of the boot process continues and you can get to a shell.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@492 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb | 2 | ||||
-rwxr-xr-x | openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb index 8b79b4bdd2..5dff889184 100644 --- a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb +++ b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)" | |||
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | SECTION = "x11" | 3 | SECTION = "x11" |
4 | PRIORITY = "optional" | 4 | PRIORITY = "optional" |
5 | PR = "r3" | 5 | PR = "r6" |
6 | 6 | ||
7 | SRC_URI = "file://xserver-nodm" | 7 | SRC_URI = "file://xserver-nodm" |
8 | S = ${WORKDIR} | 8 | S = ${WORKDIR} |
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm index 1c6f742a11..eeab55a71a 100755 --- a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm +++ b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |||
@@ -8,12 +8,19 @@ killproc() { # kill the named process(es) | |||
8 | [ "$pid" != "" ] && kill $pid | 8 | [ "$pid" != "" ] && kill $pid |
9 | } | 9 | } |
10 | 10 | ||
11 | . /etc/profile | 11 | |
12 | 12 | ||
13 | case "$1" in | 13 | case "$1" in |
14 | start) | 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 | |||
15 | echo "Starting Xserver" | 21 | echo "Starting Xserver" |
16 | /etc/X11/Xserver & | 22 | /etc/X11/Xserver & |
23 | |||
17 | export DISPLAY=:0 | 24 | export DISPLAY=:0 |
18 | 25 | ||
19 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] | 26 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] |
@@ -22,6 +29,7 @@ case "$1" in | |||
22 | done | 29 | done |
23 | 30 | ||
24 | /etc/X11/Xsession & | 31 | /etc/X11/Xsession & |
32 | fi | ||
25 | ;; | 33 | ;; |
26 | 34 | ||
27 | stop) | 35 | stop) |