summaryrefslogtreecommitdiff
path: root/recipes/xserver-kdrive-common/xserver-nodm-init
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@openmoko.org>2009-04-14 20:33:12 +1000
committerCarsten Haitzler <raster@openmoko.org>2009-04-14 23:25:16 +1000
commitb7555d7d3a43d5b6519c924fbf7eb905830248fd (patch)
treedd474393a1ab93aa908df459a8cd2b9b4947099f /recipes/xserver-kdrive-common/xserver-nodm-init
parent631decbb48e30d3043a17cc5bd94c0ac75f885f9 (diff)
xserver-kdrive-common: fix start script to suport background opt and up pkgrev
Diffstat (limited to 'recipes/xserver-kdrive-common/xserver-nodm-init')
-rwxr-xr-xrecipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm17
1 files changed, 10 insertions, 7 deletions
diff --git a/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
index 28ba65cd52..1f0fa47be6 100755
--- a/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
+++ b/recipes/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
@@ -19,13 +19,16 @@ done
case "$1" in
start)
- . /etc/profile
- [ -z $LOGNAME ] && export LOGNAME=root && export HOME=/home/root
- [ -z $HOME ] && export HOME=/home/$LOGNAME
-
-
- echo "Starting Xserver"
- /etc/X11/Xserver &
+ # We don't want this script to block the rest of the boot process
+ if [ "$2" != "background" ]; then
+ $0 $1 background &
+ else
+ . /etc/profile
+ [ -z $LOGNAME ] && export LOGNAME=root && export HOME=/home/root
+ [ -z $HOME ] && export HOME=/home/$LOGNAME
+ echo "Starting Xserver"
+ /etc/X11/Xserver &
+ fi
;;
stop)