
#	ATT: ident	"sadmin:etc/profile	2.3"

#ident	"@(#)sadmin/etc:profile	25.1"

#	The profile that all logins get before using their own .profile.

trap ""  2 3
export LOGNAME

# only do the stty stuff if the stdout is a terminal
tty -s
if [ $? = 0 ]
then
	stty erase '^h' kill '^u' echoe
fi

#	Login and -su shells get /etc/profile services.
#	-rsh is given its environment in its .profile.
case "$0" in
-su )
	export PATH
	;;
-sh | -ksh )
	export PATH

	#	Allow the user to break the Message-Of-The-Day only.
	trap "trap '' 2"  2
	cat -s /etc/motd
	trap "" 2

	if mail -e
	then
		echo "you have mail"
	fi

	if [ ${LOGNAME} != root ]
	then
		news -n
	fi
	;;
esac

umask 022
trap  2 3
