Advertisement
Guest User

profile

a guest
Mar 10th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #
  2. # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  3. # Use is subject to license terms.
  4. #
  5.  
  6. # The profile that all logins get before using their own .profile.
  7.  
  8. trap ""  2 3
  9. export LOGNAME PATH
  10.  
  11. if [ "$TERM" = "" ]
  12. then
  13.         if /bin/i386
  14.         then
  15.                 TERM=sun-color
  16.         else
  17.                 TERM=sun
  18.         fi
  19.         export TERM
  20. fi
  21.  
  22. #       Login and -su shells get /etc/profile services.
  23. #       -rsh is given its environment in its .profile.
  24.  
  25. case "$0" in
  26. -sh | -ksh | -ksh93 | -jsh | -bash | -zsh)
  27.  
  28.         if [ ! -f .hushlogin ]
  29.         then
  30.                 /usr/sbin/quota
  31.                 #       Allow the user to break the Message-Of-The-Day only.
  32.                 trap "trap '' 2"  2
  33.                 /bin/cat -s /etc/motd
  34.                 trap "" 2
  35.  
  36.                 /bin/mail -E
  37.                 case $? in
  38.                 0)
  39.                         echo "You have new mail."
  40.                         ;;
  41.                 2)
  42.                         echo "You have mail."
  43.                         ;;
  44.                 esac
  45.         fi
  46. esac
  47.  
  48. umask 022
  49. trap  2 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement