12 # See the License for the specific language governing permissions
  13 # and limitations under the License.
  14 #
  15 # When distributing Covered Code, include this CDDL HEADER in each
  16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 # If applicable, add the following below this CDDL HEADER, with the
  18 # fields enclosed by brackets "[]" replaced with your own identifying
  19 # information: Portions Copyright [yyyy] [name of copyright owner]
  20 #
  21 # CDDL HEADER END
  22 #
  23 #
  24 # Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 fail() {
  28   echo $*
  29   exit 1
  30 }
  31 
  32 PUBLISHER=omnios
  33 OMNIOS_URL=http://pkg.omniti.com/omnios/release
  34 : ${PKGURL:=http://pkg.omniti.com/omnios/release}
  35 : ${BZIP2:=bzip2}
  36 ZROOT=rpool
  37 OUT=
  38 CLEANUP=0
  39 set -- `getopt cd:o:p: $*`
  40 for i in $*
  41 do
  42   case $i in
  43     -c) CLEANUP=1; shift ;;
  44     -d) ZROOT=$2; shift 2;;
  45     -o) OUT=$2; shift 2;;
  46     -p) PROFILE=$2; shift 2;;
  47     -P) PUBLISHER_OVERRIDE=1; shift ;;
  48     --) shift; break ;;
  49   esac
  50 done
  51 
  52 name=$1
  53 if [[ -z "$name" ]]; then
  54   echo "$0 [-cP] [-d zfsparent] [-p profile] [-o outputfile] <release_name>"
 
 | 
 
 
  12 # See the License for the specific language governing permissions
  13 # and limitations under the License.
  14 #
  15 # When distributing Covered Code, include this CDDL HEADER in each
  16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 # If applicable, add the following below this CDDL HEADER, with the
  18 # fields enclosed by brackets "[]" replaced with your own identifying
  19 # information: Portions Copyright [yyyy] [name of copyright owner]
  20 #
  21 # CDDL HEADER END
  22 #
  23 #
  24 # Copyright 2012 OmniTI Computer Consulting, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 fail() {
  28   echo $*
  29   exit 1
  30 }
  31 
  32 # NOTE --> The URL needs to be updated with every release.  
  33 # Change "bloody" to whatever release the current branch is.
  34 PUBLISHER=omnios
  35 OMNIOS_URL=http://pkg.omniti.com/omnios/bloody
  36 : ${PKGURL:=http://pkg.omniti.com/omnios/bloody}
  37 : ${BZIP2:=bzip2}
  38 ZROOT=rpool
  39 OUT=
  40 CLEANUP=0
  41 set -- `getopt cd:o:p: $*`
  42 for i in $*
  43 do
  44   case $i in
  45     -c) CLEANUP=1; shift ;;
  46     -d) ZROOT=$2; shift 2;;
  47     -o) OUT=$2; shift 2;;
  48     -p) PROFILE=$2; shift 2;;
  49     -P) PUBLISHER_OVERRIDE=1; shift ;;
  50     --) shift; break ;;
  51   esac
  52 done
  53 
  54 name=$1
  55 if [[ -z "$name" ]]; then
  56   echo "$0 [-cP] [-d zfsparent] [-p profile] [-o outputfile] <release_name>"
 
 |