1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3 */ 23 24# The profile that all logins get before using their own .profile. 25 26trap "" 2 3 27export LOGNAME PATH 28 29if [ "$TERM" = "" ] 30then 31 if /bin/i386 32 then 33 TERM=sun-color 34 else 35 TERM=sun 36 fi 37 export TERM 38fi 39 40# Login and -su shells get /etc/profile services. 41# -rsh is given its environment in its .profile. 42 43case "$0" in 44-sh | -ksh | -jsh | -bash) 45 46 if [ ! -f .hushlogin ] 47 then 48 /usr/sbin/quota 49 # Allow the user to break the Message-Of-The-Day only. 50 trap "trap '' 2" 2 51 /bin/cat -s /etc/motd 52 trap "" 2 53 54 /bin/mail -E 55 case $? in 56 0) 57 echo "You have new mail." 58 ;; 59 2) 60 echo "You have mail." 61 ;; 62 esac 63 fi 64esac 65 66umask 022 67trap 2 3 68