1 #!/usr/bin/ksh
   2 #
   3 # CDDL HEADER START
   4 #
   5 # The contents of this file are subject to the terms of the
   6 # Common Development and Distribution License, Version 1.0 only
   7 # (the "License").  You may not use this file except in compliance
   8 # with the License.
   9 #
  10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11 # or http://www.opensolaris.org/os/licensing.
  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 #ident  "%Z%%M% %I%     %E% SMI"
  25 #
  26 # Copyright (c) 2001 by Sun Microsystems, Inc.
  27 # All rights reserved.
  28 #
  29 
  30 #
  31 # Source the utilities.
  32 #
  33 DIRNAME=`dirname $0`
  34 . ${DIRNAME}/utilities.san
  35 
  36 #
  37 # Process the input arguments.
  38 #
  39 VALIDOPTS=dr:p:
  40 process_args $@
  41 
  42 ksh ${DIRNAME}/createdhcp.san $@
  43 if [ $? != 0 ]
  44 then
  45     echo "`basename $0` - aborted!"
  46     exit 1
  47 fi
  48 
  49 ksh ${DIRNAME}/createmac.san $@
  50 if [ $? != 0 ]
  51 then
  52     echo "`basename $0` - aborted!"
  53     exit 1
  54 fi
  55 
  56 ksh ${DIRNAME}/createopt.san $@
  57 if [ $? != 0 ]
  58 then
  59     echo "`basename $0` - aborted!"
  60     exit 1
  61 fi
  62 
  63 ksh ${DIRNAME}/modifyopt.san $@
  64 if [ $? != 0 ]
  65 then
  66     echo "`basename $0` - aborted!"
  67     exit 1
  68 fi
  69 
  70 ksh ${DIRNAME}/modifymac.san $@
  71 if [ $? != 0 ]
  72 then
  73     echo "`basename $0` - aborted!"
  74     exit 1
  75 fi
  76 
  77 ksh ${DIRNAME}/displaydhcp.san $@
  78 if [ $? != 0 ]
  79 then
  80     echo "`basename $0` - aborted!"
  81     exit 1
  82 fi
  83 
  84 ksh ${DIRNAME}/deleteopt.san $@
  85 if [ $? != 0 ]
  86 then
  87     echo "`basename $0` - aborted!"
  88     exit 1
  89 fi
  90 
  91 ksh ${DIRNAME}/deletemac.san $@
  92 if [ $? != 0 ]
  93 then
  94     echo "`basename $0` - aborted!"
  95     exit 1
  96 fi
  97 
  98 ksh ${DIRNAME}/removedhcp.san $@
  99 if [ $? != 0 ]
 100 then
 101     echo "`basename $0` - aborted!"
 102     exit 1
 103 fi
 104 
 105 exit 0