summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb2
-rwxr-xr-xopenembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm10
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)"
2LICENSE = "GPL" 2LICENSE = "GPL"
3SECTION = "x11" 3SECTION = "x11"
4PRIORITY = "optional" 4PRIORITY = "optional"
5PR = "r3" 5PR = "r6"
6 6
7SRC_URI = "file://xserver-nodm" 7SRC_URI = "file://xserver-nodm"
8S = ${WORKDIR} 8S = ${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
13case "$1" in 13case "$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)