Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/tsol/zones/zoneunshare.sh
          +++ new/usr/src/cmd/tsol/zones/zoneunshare.sh
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -#ident  "%Z%%M% %I%     %E% SMI"
  26      -#
  27   25  # zoneunshare  -- unshare zone resources
  28   26  
  29   27  # Processes the specified sharetab file and unshare
  30   28  # all entries shared by the specfied zone
  31   29  
  32   30  USAGE="zoneunshare -z zonename [- | file]"
  33   31  set -- `getopt z: $*`
  34   32  if [ $? != 0 ]          # invalid options
  35   33          then
  36   34          echo $USAGE >&2
↓ open down ↓ 30 lines elided ↑ open up ↑
  67   65  else
  68   66          infile=/etc/dfs/sharetab        # default
  69   67  fi
  70   68  
  71   69  # Run unshare for each resource in its own shell
  72   70  
  73   71  while read line                         # get complete lines
  74   72  do
  75   73          echo $line
  76   74  done < $infile |
  77      -        `egrep "^$rootpath"|nawk '{ print "/usr/sbin/unshare " $1 ";" }'|/sbin/sh`
       75 +        `egrep "^$rootpath"|/usr/xpg4/bin/awk '{ print "/usr/sbin/unshare " $1 ";" }'|/sbin/sh`
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX