:
#	@(#) profile 22.2 90/04/18 
#
#
#	      UNIX is a registered trademark of AT&T
#		Portions Copyright 1976-1989 AT&T
#	Portions Copyright 1980-1989 Microsoft Corporation
#    Portions Copyright 1983-1989 The Santa Cruz Operation, Inc
#		      All Rights Reserved
#

#ident	"@(#)adm:profile	1.10"
trap "" 1 2 3
umask 077	# set default file creation mask

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

# issue message of the day
	[ -s /etc/motd ] && {		# if the file is out there
		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

# check mailbox and news bulletins
	[ -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
	;;
-su)
	:
	;;
esac

trap 1 2 3
