xref: /titanic_41/usr/src/cmd/nsadmin/login.csh (revision dfa1896db444d8b104da7cb009f39f1a89a438aa)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License, Version 1.0 only
5# (the "License").  You may not use this file except in compliance
6# with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
24#
25
26# The initial machine wide defaults for csh.
27
28if ( $?TERM == 0 ) then
29	if ( `uname -p` == "i386" ) then
30		setenv TERM sun-color
31	else
32		setenv TERM sun
33	endif
34else
35	if ( $TERM == "" ) then
36		if ( `uname -p` == "i386" ) then
37			setenv TERM sun-color
38		else
39			setenv TERM sun
40		endif
41	endif
42endif
43
44if (! -e .hushlogin ) then
45	/usr/sbin/quota
46	/bin/cat -s /etc/motd
47	/bin/mail -E
48	switch ( $status )
49	case 0:
50		echo "You have new mail."
51		breaksw;
52	case 2:
53		echo "You have mail."
54		breaksw;
55	endsw
56endif
57