diff options
| -rw-r--r-- | meta/recipes-core/base-files/base-files/profile | 29 |
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 | |||
| 6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. | 6 | test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. |
| 7 | 7 | ||
| 8 | if [ "$HOME" = "ROOTHOME" ]; then | 8 | if [ "$HOME" = "ROOTHOME" ]; then |
| 9 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin | 9 | PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin |
| 10 | fi | 10 | fi |
| 11 | if [ "$PS1" ]; then | 11 | if [ "$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\$ ' |
| 14 | fi | 14 | fi |
| 15 | 15 | ||
| 16 | if [ -d /etc/profile.d ]; then | 16 | if [ -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 |
| 23 | fi | 23 | fi |
| 24 | 24 | ||
| 25 | if [ -x /usr/bin/resize ] && termpath="`tty`"; then | 25 | if [ -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 | ||
| 31 | fi | 32 | fi |
| 32 | 33 | ||
| 33 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM | 34 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM |
