diff options
author | Milan P. Stanić <mps@arvanta.net> | 2019-04-29 16:59:47 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-30 06:20:31 +0000 |
commit | 165c6945f82ced8716cfb6ef78219582d51d4f42 (patch) | |
tree | ff2656517cc4c32055ffdc00dce5de0bf1f504b3 /community/tcsh/csh.login | |
parent | b35536c00d1f39c0ac216b82af60a7b363093b47 (diff) | |
download | aports-165c6945f82ced8716cfb6ef78219582d51d4f42.tar.bz2 aports-165c6945f82ced8716cfb6ef78219582d51d4f42.tar.xz |
community/tcsh: add csh.cshrc and csh.login to /etc
add sysconfdir=/etc option to build() configure
set url to current active development on github.com
add myself as contributor
bump pkgrel
Diffstat (limited to 'community/tcsh/csh.login')
-rw-r--r-- | community/tcsh/csh.login | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/community/tcsh/csh.login b/community/tcsh/csh.login new file mode 100644 index 0000000000..ea75d1fab5 --- /dev/null +++ b/community/tcsh/csh.login @@ -0,0 +1,71 @@ +############################################################################# +## +## Gentoo's csh.login +## +## 2003-01-13 -- Alain Penders (alain@gentoo.org) +## +## Initial version. Inspired by the Suse version. +## + + +## +## Default terminal initialization +## +if ( -o /dev/$tty && ${?prompt} ) then + # Console + if ( ! ${?TERM} ) setenv TERM linux + if ( "$TERM" == "unknown" ) setenv TERM linux + # No tset available on SlackWare + if ( -x "`which stty`" ) stty sane cr0 pass8 dec + if ( -x "`which tset`" ) tset -I -Q + unsetenv TERMCAP + settc km yes +endif + +## +## Default UMASK +## +umask 022 + +## +## Set our SHELL variable. +## +setenv SHELL /bin/tcsh + +## +## Setup a default MAIL variable +## +if ( -f /var/spool/mail/$USER ) then + setenv MAIL /var/spool/mail/$USER + set mail=$MAIL +endif + +## +## If we're root, report who's logging in and out. +## disabled because musl libc doesn't support utmp +##if ( "$uid" == "0" ) then +## set who=( "%n has %a %l from %M." ) +## set watch=( any any ) # +##endif + +## +## Show the MOTD once the first time, and once after it has been changed. +## +## Note: if this is a SSH login, SSH will always show the MOTD, so we +## skip it. Create ~/.hushlogin is you don't want SSH to show it. +## +if (-f /etc/motd ) then + if ( ! $?SSH_CLIENT ) then + cmp -s /etc/motd ~/.hushmotd + if ($status) then + tee ~/.hushmotd < /etc/motd + echo "((( MOTD shown only once, unless it is changed )))" + endif + endif +endif + +## +## Send us home. +## +cd + |