: "@(#)profile	5.1	6/10/86"

trap "" 1 2 3

export TZ LOGNAME TERM

if [ "$TERM" = "" ]
then
    if disptype -s
    then
	case `disptype` in
	    0) TERM=ridge-m0 ;;
	    1) TERM=ridge-m1 ;;
	    2) TERM=ridge-m2 ;;
	    *) TERM=ridge    ;;
	esac
    else
	TERM=tvi950
    fi
fi

TZ=PST8PDT

if [ ! -f $HOME/.hushlogin ]
then
    case "$0" in
	-sh | -rshell)
	    trap : 1 2 3
	    cat -s /etc/motd
	    trap "" 1 2 3
	    if mail -e
	    then
		echo "you have mail"
	    fi
	    if [ $LOGNAME != root ]
	    then
		news -n
	    fi
	    ;;
	-su)
	    :
	    ;;
    esac
fi

trap 1 2 3
