1
0
Files
irix-657m-src/eoe/cmd/adm/profile
2022-09-29 17:59:04 +03:00

40 lines
657 B
Bash

#
# /etc/profile - Default settings for all sh users
#
# This script is executed before $HOME/.profile when an sh user logs in
# or invokes /bin/su with the `-' option.
#
# Ignore keyboard interrupts.
trap "" 2 3
case "$0" in
*su )
# Special processing for ``su -'' could go here.
;;
-* )
if [ -z "$ENVONLY" ]
then
# This is a first time login.
#
# Allow the user to break the Message-Of-The-Day only.
trap "trap '' 2" 2
cat -s /etc/motd
trap "" 2
# Check for mail.
if /bin/mail -e
then
echo "you have mail"
fi
fi
;;
esac
MSGVERB=text:action
NOMSGLABEL=1
NOMSGSEVERITY=1
export MSGVERB NOMSGLABEL NOMSGSEVERITY
trap 2 3