#!/bin/csh
#
# This script selects a login file with respect to the tty.
# The login-file is called a it where part of this file.
# You should call this command with the keyword 'source' also
# to add or change environment variables.
#
# Autor:  Dr. J"org Weule (weule@acm.org)
# Date:   Nov. 1998
# Copyright: GPL
#
set TTY = "`tty`"
switch("$TTY")
case /dev/tty1:
case /dev/tty2:
case /dev/tty3:
case /dev/tty4:
case /dev/tty5:
case /dev/tty6:
case /dev/tty7:
case /dev/tty8:
set N = $TTY:s+/dev/++
if ( -x .login.$N ) then
	source .login.$N
else
	if ( -f .login.$N ) then
		echo Execute permission of .login.$N denied.
	endif
endif
endsw

