1 #! /usr/bin/ksh -p
   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 (the "License").
   7 # You may not use this file except in compliance with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 
  23 #
  24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25 # Use is subject to license terms.
  26 #
  27 
  28 TASK=$1
  29 
  30 #
  31 # Need to make sure the SHROPTS, MNTOPTS and VEROPTS are set correctly
  32 #
  33 if [[ $TASK == "CONFIGURE" ]]; then
  34         ret=0
  35         if [[ -z $SHROPTS ]]; then
  36                 echo "SHROPTS is not set correctly, please make sure your share"
  37                 echo "\toptions are selected from [$SHROPTS_LIST] list only!"
  38                 ret=$((ret + 1))
  39         fi
  40 
  41         if [[ -z $MNTOPTS ]]; then
  42                 echo "MNTOPTS is not set correctly, please make sure your mount"
  43                 echo "\toptions are selected from [$MNTOPTS_LIST] list only!"
  44                 ret=$((ret + 1))
  45         fi
  46 
  47         if [[ -z $VEROPTS ]]; then
  48                 echo "VEROPTS is not set correctly, please make sure your vers"
  49                 echo "\toptions are selected from [$VEROPTS_LIST] list only!"
  50                 ret=$((ret + 1))
  51         fi
  52 
  53         (( $ret != 0 )) && exit 1
  54 fi
  55 exit 0