Advertisement
Guest User

DBC bash_profile

a guest
Apr 24th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # .bash_profile
  2.  
  3. # User specific aliases and functions
  4.  
  5. # Source global definitions
  6. if [ -f /etc/bashrc ]; then
  7. . /etc/bashrc
  8. fi
  9.  
  10. HISTFILE=~/.bash_history; export HISTFILE
  11. HISTSIZE=200; export HISTSIZE
  12. . /etc/default/ppro
  13. . $DIR/bin/STARTDBC.TXT
  14.  
  15. # Set up the search paths:
  16. PATH=$PATH:.
  17.  
  18. # Set up the shell environment:
  19. set +u
  20. trap "echo 'logout'" 0
  21.  
  22. # Set up the shell variables:
  23. if [ -f $DIR/bin/hphw/baddisk ] ; then
  24. banner WARNING
  25. echo "POSSIBLE BAD UNIX DISK(S)"
  26. sleep 2
  27. fi
  28.  
  29. > $HISTFILE
  30.  
  31. # Prompt to change passwd if file change_pass exists in the home directory
  32. if [ -f /home/$LOGNAME/change_pass ]
  33. then
  34. passwd
  35. if [ $? -eq 0 ]
  36. then
  37. rm -f /home/$LOGNAME/change_pass
  38. else
  39. echo " "
  40. echo " "
  41. echo "Password change failed. Exiting."
  42. sleep 10
  43. exit 4
  44. fi
  45. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement