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