#######################################################
##  Request script for Interactive Network Dispatcher 
##  This script takes into account variables that are
##  created in "pkginfo" and used in "prototype".
#######################################################

NDDIR="/opt/ibmnd"
JAVADIR=""
AGENTDIR="/opt/ibmiss"
MONITORDIR="/opt/ibmiss"

# ------------------------------------------------------
# Determine if Network Dipatcher should be installed.
# ------------------------------------------------------
ans=`ckyorn -d y \
-p "Should Network Dispatcher be installed?"` || exit $?
if [ "$ans" = y ] 
then
CLASSES="$CLASSES nd"
JAVADIR=`ckpath -d /opt/java -aoy \
-p "Where is Java installed? </opt/java>"` || exit $?
fi

# ------------------------------------------------------
# Determine if ISS Agent should be installed.
# ------------------------------------------------------
ans=`ckyorn -d y \
-p "Should Session Support Agent be installed?"` || exit $?
if [ "$ans" = y ] 
then
CLASSES="$CLASSES agent"
fi

# ------------------------------------------------------
# Determine if ISS Monitor should be installed
# ------------------------------------------------------
ans=`ckyorn -d y \
-p "Should Session Support Monitor be installed?"` || exit $?
if [ "$ans" = y ] 
then
CLASSES="$CLASSES mon"
fi

# ------------------------------------------------------
# Make parameters available to installation service as
# well as any other packaging scripts.
# ------------------------------------------------------
cat >$1 <<!
NDDIR='$NDDIR'
CLASSES='$CLASSES'
JAVADIR='$JAVADIR'
AGENTDIR='$AGENTDIR'
MONITORDIR='$MONITORDIR'
!
exit 0
