profile 978 B

1234567891011121314151617181920212223242526272829303132333435
  1. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  3. PATH="/usr/local/bin:/usr/bin:/bin"
  4. EDITOR="vi" # needed for packages like cron, git-commit
  5. test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.
  6. if [ "$HOME" = "/home/root" ]; then
  7. PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
  8. fi
  9. if [ "$PS1" ]; then
  10. # works for bash and ash (no other shells known to be in use here)
  11. PS1='\u@\h:\w\$ '
  12. fi
  13. if [ -d /etc/profile.d ]; then
  14. for i in /etc/profile.d/*.sh ; do
  15. if [ -f $i -a -r $i ]; then
  16. . $i
  17. fi
  18. done
  19. unset i
  20. fi
  21. if [ -x /usr/bin/resize ] && termpath="`tty`"; then
  22. # Make sure we are on a serial console (i.e. the device used starts with /dev/tty),
  23. # otherwise we confuse e.g. the eclipse launcher which tries do use ssh
  24. case "$termpath" in
  25. /dev/tty[A-z]*) resize >/dev/null
  26. esac
  27. fi
  28. export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
  29. umask 022