summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@openmoko.org>2008-06-01 19:17:58 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2008-10-28 22:48:40 +0100
commit078b0e63359b8dc61ab95e028b37d8668cdc1671 (patch)
treed55b614f31f128c64668c8f80a635bd003c6f4a1 /packages
parentc5431547e51cd95e0746e9a7f7727cdb822dedb7 (diff)
xserver-nodm-init: Make sure to set a HOME and LOGNAME when launching
Set a HOME and LOGNAME when none is being set.
Diffstat (limited to 'packages')
-rw-r--r--packages/xserver-kdrive-common/xserver-nodm-init.bb2
-rwxr-xr-xpackages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm3
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/xserver-kdrive-common/xserver-nodm-init.bb b/packages/xserver-kdrive-common/xserver-nodm-init.bb
index cea9f0cb28..bea21793a6 100644
--- a/packages/xserver-kdrive-common/xserver-nodm-init.bb
+++ b/packages/xserver-kdrive-common/xserver-nodm-init.bb
@@ -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}
diff --git a/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
index a56edaa15b..2251c6aab2 100755
--- a/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
+++ b/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm
@@ -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 &