# @(#)local.login 1.4     98/02/06 SMI
stty -istrip 
# setenv TERM `tset -Q -`

#
# if possible, start the windows system.  Give user a chance to bail out
#
if ( "`tty`" == "/dev/console" ) then

	if ( "$TERM" == "sun" || "$TERM" == "AT386" ) then

		if ( ${?OPENWINHOME} == 0 ) then	 
			setenv OPENWINHOME /usr/openwin
		endif			    

		echo ""
		echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
		sleep 5
		echo ""
		$OPENWINHOME/bin/openwin
		clear		# get rid of annoying cursor rectangle
		logout		# logout after leaving windows system

	endif

endif
