#!/usr/bin/csh -f

test -r $HOME/.startup.tty

   if ($status == 0) then
      grep "set term=vt100" $HOME/.startup.tty
	 if ($status == 0) then
	 echo "You're already set up. No need to modify startup file."
	 exit(0)
	 else 
         cp $HOME/.startup.tty $HOME/.startup.tty.old
         cat /afs/athena.mit.edu/user/c/s/csnowden/Public/termstring $HOME/.startup.tty.old > $HOME/.startup.tty
         echo "All set. Your old .startup.tty has been copied to .startup.tty.old" 
         endif
else
   echo "Creating .startup.tty for you." 
   echo "set term=vt100" > $HOME/.startup.tty
   echo "OK. All done."
endif
