1 #############################################################################
5 ## 2003-01-13 -- Alain Penders (alain@gentoo.org)
7 ## Initial version. Inspired by the Suse version.
12 ## Default terminal initialization
14 if ( -o /dev/$tty && ${?prompt} ) then
16 if ( ! ${?TERM} ) setenv TERM linux
17 if ( "$TERM" == "unknown" ) setenv TERM linux
18 # No tset available on SlackWare
19 if ( -x "`which stty`" ) stty sane cr0 pass8 dec
20 if ( -x "`which tset`" ) tset -I -Q
31 ## Set our SHELL variable.
33 setenv SHELL /bin/tcsh
36 ## Setup a default MAIL variable
38 if ( -f /var/spool/mail/$USER ) then
39 setenv MAIL /var/spool/mail/$USER
44 ## If we're root, report who's logging in and out.
46 if ( "$uid" == "0" ) then
47 set who=( "%n has %a %l from %M." )
52 ## Show the MOTD once the first time, and once after it has been changed.
54 ## Note: if this is a SSH login, SSH will always show the MOTD, so we
55 ## skip it. Create ~/.hushlogin is you don't want SSH to show it.
57 if (-f /etc/motd ) then
58 if ( ! $?SSH_CLIENT ) then
59 cmp -s /etc/motd ~/.hushmotd
61 tee ~/.hushmotd < /etc/motd
62 echo "((( MOTD shown only once, unless it is changed )))"