diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-10-21 17:22:59 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-01 08:55:04 +0100 |
commit | 7206edddeb3c23d1c0efcce85ceb63d7e896b0c3 (patch) | |
tree | 93010ff2f900f8b3ddafc3797b1bba184b7079de /meta-oe/recipes-graphics/xserver-nodm-init | |
parent | e10965933fa18d86d73c559dbee501e30c2da33b (diff) | |
download | meta-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-x | meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm | 7 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb | 2 |
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" | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | SECTION = "x11" | 4 | SECTION = "x11" |
5 | 5 | ||
6 | PR = "r10" | 6 | PR = "r11" |
7 | 7 | ||
8 | SRC_URI = "file://xserver-nodm \ | 8 | SRC_URI = "file://xserver-nodm \ |
9 | file://xserver-nodm.service \ | 9 | file://xserver-nodm.service \ |