xserver-nodm-init: Make sure to set a HOME and LOGNAME when launching
authorHolger Hans Peter Freyther <zecke@openmoko.org>
Sun, 1 Jun 2008 17:17:58 +0000 (19:17 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Tue, 28 Oct 2008 21:48:40 +0000 (22:48 +0100)
    Set a HOME and LOGNAME when none is being set.

packages/xserver-kdrive-common/xserver-nodm-init.bb
packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm

index cea9f0c..bea2179 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)"
 LICENSE = "GPL"
 SECTION = "x11"
 PRIORITY = "optional"
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "file://xserver-nodm"
 S = ${WORKDIR}
index a56edaa..2251c6a 100755 (executable)
@@ -24,6 +24,9 @@ case "$1" in
       $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 &