[oe-commits] Martin Jansa : base-files: adjust SHR profile a bit more

git version control git at git.openembedded.org
Mon May 3 18:06:17 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 34f9008f3d3770200dc8a47537232df4fe5f6f05
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=34f9008f3d3770200dc8a47537232df4fe5f6f05

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Mon May  3 18:44:40 2010 +0200

base-files: adjust SHR profile a bit more

* 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 at gmail.com>

---

 recipes/base-files/base-files/shr/profile |    2 +-
 recipes/base-files/base-files_3.0.14.bb   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/base-files/base-files/shr/profile b/recipes/base-files/base-files/shr/profile
index ea5e270..05e8490 100644
--- a/recipes/base-files/base-files/shr/profile
+++ b/recipes/base-files/base-files/shr/profile
@@ -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
diff --git a/recipes/base-files/base-files_3.0.14.bb b/recipes/base-files/base-files_3.0.14.bb
index 05001f8..9801f8a 100644
--- a/recipes/base-files/base-files_3.0.14.bb
+++ b/recipes/base-files/base-files_3.0.14.bb
@@ -1,7 +1,7 @@
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r93"
+PR = "r94"
 LICENSE = "GPL"
 
 SRC_URI = " \





More information about the Openembedded-commits mailing list