home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 200.img / SCO386X3.TD0 / usr / bin / sysadmsh < prev    next >
Encoding:
Text File  |  1988-08-03  |  971 b   |  54 lines

  1.  
  2. :
  3. #    @(#) sysadmsh.sh 1.1 88/08/02 
  4. #
  5. #    Copyright (C) The Santa Cruz Operation, 1986.
  6. #    This Module contains Proprietary Information of
  7. #    The Santa Cruz Operation, Microsoft Corporation
  8. #    and AT&T, and should be treated as Confidential.
  9. #
  10.  
  11. #
  12. # Invoke SysAdm shell
  13. #
  14.  
  15. #    Trap interrupts, etc for a clean exit.
  16.  
  17. trap "echo SysAdm ViewScreen interrupted; exit 2" 1 2 3 15
  18.  
  19.  
  20. HOME=        UHOME=        SHELL=
  21.  
  22. : ${SYSADM:=/usr/lib/sysadm}
  23.  
  24. PATH=$PATH:$SYSADM:/etc 
  25.  
  26. # if [ "$SA_PRINT" ] 
  27. #     then : printer is already set
  28. # else SA_PRINT="/bin/cat"
  29. # fi
  30.  
  31. if [ "$SA_MAIL" ] 
  32.     then : mail is already set
  33. elif [ -x /usr/lib/oa/email ]
  34.     then SA_MAIL=/usr/lib/oa/email
  35. else SA_MAIL=mail
  36. fi
  37.  
  38. if [ "$SA_EDITOR" ] 
  39.     then : editor is already set
  40. elif [ -x /usr/bin/lyrix ]
  41.     then SA_EDITOR=lyrix
  42. elif [ -x /bin/vi ]
  43.     then SA_EDITOR=vi
  44. else SA_EDITOR=ed
  45. fi
  46.  
  47. . /etc/default/mkuser
  48. : ${HOME:=/usr}
  49. UHOME=$HOME
  50.  
  51. SHELL=/bin/sh
  52. export SYSADM PATH SA_EDITOR SHELL UHOME # SA_PRINT
  53. exec $SYSADM/sysadm.menu
  54.