Print this page
104 Bring back lx brand

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/zoneadm/svc-zones
          +++ new/usr/src/cmd/zoneadm/svc-zones
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  #
  22   22  #
  23   23  # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  
  25   25  . /lib/svc/share/smf_include.sh
  26   26  
  27   27  #
  28   28  # Return a list of running, non-global zones for which a shutdown via
  29   29  # "/sbin/init 0" may work (typically only Solaris zones.)
  30   30  #
       31 +# At present, this means any running "lx" zones don't qualify.
       32 +#
  31   33  shutdown_zones()
  32   34  {
  33   35          zoneadm list -p | nawk -F: '{
  34      -                if ($2 != "global") {
       36 +                if (($5 != "lx") && ($2 != "global")) {
  35   37                          print $2
  36   38                  }
  37   39          }'
  38   40  }
  39   41  
  40   42  [ ! -x /usr/sbin/zoneadm ] && exit 0    # SUNWzoneu not installed
  41   43  
  42   44  if [ -z "$SMF_FMRI" ]; then
  43   45          echo "this script can only be invoked by smf(5)"        
  44   46          exit $SMF_EXIT_ERR_NOSMF
↓ open down ↓ 131 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX