summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-files/base-files/profile
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/base-files/base-files/profile')
-rw-r--r--meta/recipes-core/base-files/base-files/profile29
1 files changed, 15 insertions, 14 deletions
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index c616616cee..22dfb4f219 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -6,28 +6,29 @@ EDITOR="vi" # needed for packages like cron, git-commit
6test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. 6test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
7 7
8if [ "$HOME" = "ROOTHOME" ]; then 8if [ "$HOME" = "ROOTHOME" ]; then
9 PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin 9 PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
10fi 10fi
11if [ "$PS1" ]; then 11if [ "$PS1" ]; then
12# works for bash and ash (no other shells known to be in use here) 12 # works for bash and ash (no other shells known to be in use here)
13 PS1='\u@\h:\w\$ ' 13 PS1='\u@\h:\w\$ '
14fi 14fi
15 15
16if [ -d /etc/profile.d ]; then 16if [ -d /etc/profile.d ]; then
17 for i in /etc/profile.d/*.sh ; do 17 for i in /etc/profile.d/*.sh; do
18 if [ -f $i -a -r $i ]; then 18 if [ -f $i -a -r $i ]; then
19 . $i 19 . $i
20 fi 20 fi
21 done 21 done
22 unset i 22 unset i
23fi 23fi
24 24
25if [ -x /usr/bin/resize ] && termpath="`tty`"; then 25if [ -x /usr/bin/resize ] && termpath="`tty`"; then
26 # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), 26 # Make sure we are on a serial console (i.e. the device used starts with
27 # otherwise we confuse e.g. the eclipse launcher which tries do use ssh 27 # /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which
28 case "$termpath" in 28 # tries do use ssh
29 /dev/tty[A-z]*) resize >/dev/null 29 case "$termpath" in
30 esac 30 /dev/tty[A-z]*) resize >/dev/null
31 esac
31fi 32fi
32 33
33export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM 34export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM