Print this page
Split Close
Expand all
Collapse all
          --- /workspace/tf84964/oscds-6662001-6610950/webrev/usr/src/cmd/ha-services/gds-agents/zone/sczbt/sczbt_register.ksh-
          +++ sczbt_register.ksh
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # When distributing Covered Code, include this CDDL HEADER in each
  15   15  # file and include the License file at usr/src/CDDL.txt.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets [] replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  
  23   23  #
  24      -# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
       24 +# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
  27   27  #ident  "%Z%%M% %I%     %E% SMI"
  28   28  #
  29   29  #  This script has the optional -f option:
  30   30  #  -f <filename> sources a user definable config file
  31   31  #  different from sczbt_config.
  32   32  
  33   33  MYNAME=`basename ${0}`
  34   34  
↓ open down ↓ 88 lines elided ↑ open up ↑
 123  123  EOF
 124  124  
 125  125  else
 126  126          echo "The parameterfile ${PARAMETERDIR}/sczbt_${RS} already exists! Will not overwrite and exit."
 127  127          exit 1
 128  128  fi
 129  129  
 130  130  
 131  131  # Checking dependencies for SC_NETWORK=true
 132  132  
 133      -SC_NETWORK=`echo ${SC_NETWORK}|/usr/bin/tr [:upper:] [:lower:]`
      133 +SC_NETWORK=`echo ${SC_NETWORK} | /usr/xpg4/bin/tr [:upper:] [:lower:]`
 134  134  
 135  135  if [ "${SC_NETWORK}" == "true" -a -z "${SC_LH}" ]
 136  136  then
 137  137          echo "Error: SC_LH is required with SC_NETWORK=true"
 138  138          rm ${PARAMETERDIR}/sczbt_${RS}
 139  139          exit 1
 140  140  fi
 141  141  
 142  142  # If the configured zone has set ip-type=exclusive, then assigning a
 143  143  # SUNW.LogicalHostname to this zone is not possible.
↓ open down ↓ 2 lines elided ↑ open up ↑
 146  146  
 147  147  if [ "${IPTYPE}" == "exclusive" ] && [ "${SC_NETWORK}" == "true" ]
 148  148  then
 149  149          echo "Error: The zone ${Zonename} has set ip-type=exclusive. This can not be combined with setting SC_NETWORK=true."
 150  150          rm ${PARAMETERDIR}/sczbt_${RS}
 151  151          exit 1
 152  152  fi
 153  153  
 154  154  # Checking dependencies for FAILOVER=true
 155  155  
 156      -FAILOVER=`echo ${FAILOVER}|/usr/bin/tr [:upper:] [:lower:]`
      156 +FAILOVER=`echo ${FAILOVER} | /usr/xpg4/bin/tr [:upper:] [:lower:]`
 157  157  
 158  158  if [ "${FAILOVER}" == "true" -a -z "${HAS_RS}" ]
 159  159  then
 160  160          echo "Error: HAS_RS is required with FAILOVER=true"
 161  161          rm ${PARAMETERDIR}/sczbt_${RS}
 162  162          exit 1
 163  163  fi
 164  164  
 165  165  # Setting Resource_dependencies
 166  166  
↓ open down ↓ 74 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX