#ident	"@(#)profile	2.6 - 89/03/15"
#	The profile that all logins get before using their own .profile.

trap '' 1 2 3
umask 022		# set default file creation mask
. /etc/TIMEZONE
if id|grep -i funk >/dev/null
then
: > /usr/local/login/$LOGNAME
fi
if id|grep -v dc1ik >/dev/null
then
if id|grep -i funk >/dev/null 
then
man() {
  /usr/bin/man $* | /usr/local/bin/pager
}
more () {
 /usr/local/bin/pager $*
}
fi
fi
Fullname=`grep "^$LOGNAME:" /etc/passwd | cut -d: -f5 | cut '-d ' -f1`
Fullname="$Fullname <$LOGNAME>"
trap "echo \"$Fullname logged off.\"" 0
echo "$Fullname logged on. Type info for information."

case "$0" in
-sh | -rsh)
# calculate available disk space in root filesystem.
	#echo ""		# skip a line
	#. /etc/dfspace
if echo $LOGNAME|grep root >/dev/null 
then
	. /etc/dfspace
fi
# issue message of the day
	trap : 1 2 3
	#echo ""		# skip a line
	if [ -s /etc/motd ] ; then cat /etc/motd; fi

	trap "" 1 2 3
# set default attributes for terminal
	stty erase '^h' echoe kill 

	if [ x$TERM = x -o "$TERM" = "unknown" ]; then
		LOGTTY=${LOGTTY:=`tty`}
		TERM=AT386		# default terminal type
	fi
	export TERM


if tty|grep ttyp >/dev/null && id|grep funk >/dev/null 
then
TERM=dumb
export TERM
fi
# check mailbox and news bulletins
	if mail -e
	then echo "you have mail"
	fi
	if [ $LOGNAME != root ]
	then news -n
	fi
	;;
-su)
	:
	;;
esac
PATH=$PATH:/usr/local/bin:/usr/ucb:/usr/bin/X11:/usr/local/bin/X11
export PATH;
export PATH TERM
trap 1 2 3
