Print this page
3842 remove the machid commands

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/nsadmin/login.csh
          +++ new/usr/src/cmd/nsadmin/login.csh
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  # Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
       23 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  23   24  #
  24      -#ident  "%Z%%M% %I%     %E% SMI"
  25   25  
  26   26  # The initial machine wide defaults for csh.
  27   27  
  28   28  if ( $?TERM == 0 ) then
  29      -        if { /bin/i386 } then
       29 +        if ( `uname -p` == "i386" ) then
  30   30                  setenv TERM sun-color
  31   31          else
  32   32                  setenv TERM sun
  33   33          endif
  34   34  else
  35   35          if ( $TERM == "" ) then
  36      -                if { /bin/i386 } then
       36 +                if ( `uname -p` == "i386" ) then
  37   37                          setenv TERM sun-color
  38   38                  else
  39   39                          setenv TERM sun
  40   40                  endif
  41   41          endif
  42   42  endif
  43   43  
  44   44  if (! -e .hushlogin ) then
  45   45          /usr/sbin/quota
  46   46          /bin/cat -s /etc/motd
  47   47          /bin/mail -E
  48   48          switch ( $status )
  49   49          case 0: 
  50   50                  echo "You have new mail."
  51   51                  breaksw;
  52   52          case 2: 
  53   53                  echo "You have mail."
  54   54                  breaksw;
  55   55          endsw
  56   56  endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX