home *** CD-ROM | disk | FTP | other *** search
-
- :
- # @(#) sysadmsh.sh 1.1 88/08/02
- #
- # Copyright (C) The Santa Cruz Operation, 1986.
- # This Module contains Proprietary Information of
- # The Santa Cruz Operation, Microsoft Corporation
- # and AT&T, and should be treated as Confidential.
- #
-
- #
- # Invoke SysAdm shell
- #
-
- # Trap interrupts, etc for a clean exit.
-
- trap "echo SysAdm ViewScreen interrupted; exit 2" 1 2 3 15
-
-
- HOME= UHOME= SHELL=
-
- : ${SYSADM:=/usr/lib/sysadm}
-
- PATH=$PATH:$SYSADM:/etc
-
- # if [ "$SA_PRINT" ]
- # then : printer is already set
- # else SA_PRINT="/bin/cat"
- # fi
-
- if [ "$SA_MAIL" ]
- then : mail is already set
- elif [ -x /usr/lib/oa/email ]
- then SA_MAIL=/usr/lib/oa/email
- else SA_MAIL=mail
- fi
-
- if [ "$SA_EDITOR" ]
- then : editor is already set
- elif [ -x /usr/bin/lyrix ]
- then SA_EDITOR=lyrix
- elif [ -x /bin/vi ]
- then SA_EDITOR=vi
- else SA_EDITOR=ed
- fi
-
- . /etc/default/mkuser
- : ${HOME:=/usr}
- UHOME=$HOME
-
- SHELL=/bin/sh
- export SYSADM PATH SA_EDITOR SHELL UHOME # SA_PRINT
- exec $SYSADM/sysadm.menu
-