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
↓ 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  
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX