Print this page
    
3842 remove the machid commands
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/cmd/nsadmin/etc-profile.sh
          +++ new/usr/src/cmd/nsadmin/etc-profile.sh
   1    1  #
   2    2  # CDDL HEADER START
   3    3  #
   4    4  # The contents of this file are subject to the terms of the
   5    5  # Common Development and Distribution License (the "License").
   6    6  # You may not use this file except in compliance with the License.
   7    7  #
   8    8  # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9  # or http://www.opensolaris.org/os/licensing.
  10   10  # See the License for the specific language governing permissions
  11   11  # and limitations under the License.
  12   12  #
  
    | 
      ↓ 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 2010 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23      -#
       23 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  24   24  
  25   25  # The profile that all logins get before using their own .profile.
  26   26  
  27   27  trap ""  2 3
  28   28  export LOGNAME PATH
  29   29  
  30   30  if [ "$TERM" = "" ]
  31   31  then
  32      -        if /bin/i386
  33      -        then
       32 +        if [ `uname -p` = "i386" ]; then
  34   33                  TERM=sun-color
  35   34          else
  36   35                  TERM=sun
  37   36          fi
  38   37          export TERM
  39   38  fi
  40   39  
  41   40  #       Login and -su shells get /etc/profile services.
  42   41  #       -rsh is given its environment in its .profile.
  43   42  
  44   43  case "$0" in
  45   44  -sh | -ksh | -ksh93 | -jsh | -bash | -zsh)
  46   45  
  47   46          if [ ! -f .hushlogin ]
  48   47          then
  49   48                  /usr/sbin/quota
  50   49                  #       Allow the user to break the Message-Of-The-Day only.
  51   50                  trap "trap '' 2"  2
  52   51                  /bin/cat -s /etc/motd
  53   52                  trap "" 2
  54   53  
  55   54                  /bin/mail -E
  56   55                  case $? in
  57   56                  0) 
  58   57                          echo "You have new mail."
  59   58                          ;;
  60   59                  2) 
  61   60                          echo "You have mail."
  62   61                          ;;
  63   62                  esac
  64   63          fi
  65   64  esac
  66   65  
  67   66  umask 022
  68   67  trap  2 3
  
    | 
      ↓ open down ↓ | 
    25 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX