# sample ptolemy .login
# @(#).login	1.2	12/2/92

set noglob noclobber filec

if ("$ARCH" != "hppa") then
	stty dec
	set mail=/usr/spool/mail/$USER
else
	stty kill ^U
	stty intr ^C
	stty erase '^?'
	stty susp ^Z
endif

eval `tset -s -Q -m su:\?$TERM sun:sun \?$TERM`

if (! $?DISPLAY) then
	if ($TERM == "xterm") then
		echo -n "DISPLAY? "
		setenv DISPLAY $<
	endif
endif

if ($TERM == "sun") then
	# If we get here, we're on a bare Sun tube.  Fire up X.
	# To fire up OpenWindows instead one might do
	#
	# setenv OPENWINHOME /usr/openwin
	# exec $OPENWINHOME/bin/openwin
	exec Xrun
endif
date
