base-files: adjust SHR /etc/profile
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 3 May 2010 05:09:07 +0000 (07:09 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Mon, 3 May 2010 05:30:44 +0000 (07:30 +0200)
* export HOME if it's empty, because xserver-nodm needs that to run
  x-window-manager (E17 was creating .e in / not real HOME)
* don't export LANG, as users cannot overwrite it with extra file
  in /etc/profile.d/, if it's really needed put extra file there with
  default LANG

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 202a9ae..ea5e270 100644 (file)
@@ -36,14 +36,14 @@ alias pico=nano
 alias fso='cd /local/pkg/fso'
 alias ipkg='opkg'
 export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \\$\[\033[00m\] "
-if [ "$DISPLAY" = "" ]
-then
+if [ "$DISPLAY" = "" ] ; then
     export DISPLAY=localhost:0
 fi
+if [ "$HOME" = "" ] ; then
+    export HOME=/home/root
+fi
 export HISTFILESIZE=1000
 export HISTSIZE=1000
 alias rm='rm -i'; alias cp='cp -i'; alias mv='mv -i'
 alias la='ls  -ltrA'; alias lh='ls  -ltrh'; alias lr='ls  -ltr';
 alias lR='ls  -ltrR'
-# set your locale here:
-export LANG=en_US.UTF-8
index 7cb4061..05001f8 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r92"
+PR = "r93"
 LICENSE = "GPL"
 
 SRC_URI = " \