:
#	@(#) profile 23.2 91/08/29 
#
#	Copyright (C) 1988-1991 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#

#ident	"@(#)adm:profile	1.10"

trap "" 1 2 3
umask 077

case "$0" in
-sh | -rsh | -ksh | -rksh)

# if not doing a hushlogin, issue message of the day, if the file is out there
	[ "X$HUSHLOGIN" != "XTRUE" ] && [ -s /etc/motd ] && {
		trap : 1 2 3
		echo ""		# skip a line
		cat /etc/motd
		trap "" 1 2 3
	}

# setting default attributes for terminal moved to ~/.profile, so
# each user has individual control over these characteristics

# if not doing a hushlogin, check mailbox and news bulletins
	if [ "X$HUSHLOGIN" != "XTRUE" ]
	then
		[ -x /usr/bin/mail ] &&	{	# if the program is installed
			[ -s "$MAIL" ] && echo "\nyou have mail"
		}
		if [ "$LOGNAME" != "root" -a -x /usr/bin/news ]	# be sure it's there
		then news -n
		fi
	fi
	;;
-su)
	:
	;;
esac

trap 1 2 3
MERGE_SPCL_MSG="DOS Services"; export MERGE_SPCL_MSG	### MERGE
CODEPAGE="pc437"; export CODEPAGE	### MERGE
COUNTRY="1"; export COUNTRY	### MERGE
KEYB="us"; export KEYB	### MERGE
