diff options
author | Holger Hans Peter Freyther <zecke@openmoko.org> | 2008-06-01 19:17:58 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-10-28 22:48:40 +0100 |
commit | 078b0e63359b8dc61ab95e028b37d8668cdc1671 (patch) | |
tree | d55b614f31f128c64668c8f80a635bd003c6f4a1 /packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |
parent | c5431547e51cd95e0746e9a7f7727cdb822dedb7 (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/xserver-kdrive-common/xserver-nodm-init/xserver-nodm')
-rwxr-xr-x | packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 3 |
1 files changed, 3 insertions, 0 deletions
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 & |