base-files: adjust SHR profile a bit more
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 3 May 2010 16:44:40 +0000 (18:44 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Mon, 3 May 2010 17:32:31 +0000 (19:32 +0200)
* on some targets HOME is set to '/' before /etc/profile gets sourced
* Haven't found yet, why it's set '/' in first place, but will apply
  this workaround proposed by Joachim Ott for now.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/base-files/base-files/shr/profile
recipes/base-files/base-files_3.0.14.bb

index ea5e270..05e8490 100644 (file)
@@ -39,7 +39,7 @@ export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \\$\[\033[00m\] "
 if [ "$DISPLAY" = "" ] ; then
     export DISPLAY=localhost:0
 fi
-if [ "$HOME" = "" ] ; then
+if [ "$HOME" = "" -o "$HOME" = "/" ] ; then
     export HOME=/home/root
 fi
 export HISTFILESIZE=1000
index 05001f8..9801f8a 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r93"
+PR = "r94"
 LICENSE = "GPL"
 
 SRC_URI = " \