:

# BEGIN SCO_ADM
#	
#	@(#) sysadmsh.sh 9.8 89/05/30 
#	 
#	Copyright (C) The Santa Cruz Operation, 1987, 1988, 1989.
#	This Module contains Proprietary Information of
#	The Santa Cruz Operation and is 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 /usr/bin/vi ]
	then SA_EDITOR=vi
else SA_EDITOR=ed
fi

if [ "$SCOLIB" ] 
	then : scolib is already set
else SCOLIB=/usr/lib/sco
fi

SHELL=/bin/sh
export SYSADM PATH SA_EDITOR SHELL SCOLIB # SA_PRINT
exec $SYSADM/sysadm.menu
# END SCO_ADM
