#!/bin/ksh
#
#ident	"@(#)make.slices	1.8	04/12/08 SMI"
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# make.slices - create default config.s+h.info file as input for
# config.s+h script (performs slicing, mounts filesystems, creates
# cleanup script, supplies parameter values for RUN script)
#
# usage: make.slices

confdir=/opt/SUNWstaf/config-util
cd $confdir

# Create config.s+h.info file

./make.slices.info


# Perform slicing and create cleanup script in debug mode
./config.s+h -v

# Verify that MAX_BLOCKS variable was set to the non-zero value

grep "MAX_BLOCKS=0" env.s+h
if (( $? == 0 ))
then 
	print
	print "ERROR: The value of MAX_BLOCKS=0"
else
	print
	print -n "The value of " 
	head -1 env.s+h
fi
