summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/xserver-nodm-init
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-10-21 17:22:59 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-01 08:55:04 +0100
commit7206edddeb3c23d1c0efcce85ceb63d7e896b0c3 (patch)
tree93010ff2f900f8b3ddafc3797b1bba184b7079de /meta-oe/recipes-graphics/xserver-nodm-init
parente10965933fa18d86d73c559dbee501e30c2da33b (diff)
downloadmeta-openembedded-7206edddeb3c23d1c0efcce85ceb63d7e896b0c3.tar.gz
xserver-nodm-init: set USER and HOME
* when it's executed from init then HOME is set to '/' * shadow/agetty set HOME fine and Xinit is doing the same, but for xinit Xsession it didn't work Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-graphics/xserver-nodm-init')
-rwxr-xr-xmeta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm7
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb2
2 files changed, 8 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm
index 39ce890fd..d2e2f866c 100755
--- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm
@@ -17,6 +17,13 @@ case "$1" in
17 if [ "$2" != "background" ]; then 17 if [ "$2" != "background" ]; then
18 $0 $1 background & 18 $0 $1 background &
19 else 19 else
20 # work around from /etc/X11/Xinit
21 export USER=root
22 export HOME=/home/root
23 if [ ! -d $HOME ] && [ -d /root ]; then
24 HOME=/root
25 fi
26
20 . /etc/profile 27 . /etc/profile
21 28
22 echo "Starting Xserver" 29 echo "Starting Xserver"
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
index 17fe4d8d8..496b3428b 100644
--- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
@@ -3,7 +3,7 @@ LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4SECTION = "x11" 4SECTION = "x11"
5 5
6PR = "r10" 6PR = "r11"
7 7
8SRC_URI = "file://xserver-nodm \ 8SRC_URI = "file://xserver-nodm \
9 file://xserver-nodm.service \ 9 file://xserver-nodm.service \