profile 642 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. [ -f /etc/banner ] && cat /etc/banner
  3. [ -e /tmp/.failsafe ] && cat /etc/banner.failsafe
  4. export PATH=/usr/sbin:/usr/bin:/sbin:/bin
  5. export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
  6. export HOME=${HOME:-/root}
  7. export PS1='\u@\h:\w\$ '
  8. [ -x /bin/more ] || alias more=less
  9. [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
  10. [ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
  11. [ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
  12. [ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
  13. [ -n "$FAILSAFE" ] || {
  14. for FILE in /etc/profile.d/*.sh; do
  15. [ -e "$FILE" ] && . "$FILE"
  16. done
  17. unset FILE
  18. }