Hi....
i have two scripts called:
type & selecttype.
In type i have only the name of the products ex.: product1 & product2. Now, i am going to ADD product3 which includes productA, productB, productC, productD, productE, productF. so my new type script (menu) looks as below:
1) product1
2) product2
3) product3
and my current selectype looks as below ( which is set only for product1 & product2)my question is how can include the new product3 with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype as below:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then
selecttypechoice=${upgrade_type}
else
[ -a ./types ]
if [ $? = 0 ] ; then
#### Select Type from types file
echo --title \"$installproductchoice Server Role\" --menu \"Select Role to install\" 20 48 6 > /tmp/selecttype.dialog
for vpackages in `cat types`; do
if [ "$typesexception" = "" ] ; then
echo \"$vpackages\" Role >> /tmp/selecttype.dialog;
else
echo $typesexception | grep -i "$vpackages"
if [ $? = 0 ] ; then
echo .
else
echo \"$vpackages\" Role >> /tmp/selecttype.dialog;
fi
fi
done;
dialog --file /tmp/selecttype.dialog 2> /tmp/selecttype.choice
if [ $? = 0 ] ; then
export selecttypechoice=`cat /tmp/selecttype.choice`;
else
export -n selecttypechoice;
fi
reset
echo selecttypechoice $selecttypechoice
if [ "$selecttypechoice" = "" ] ; then
echo Aborted: User Aborted while selecting a $installproductchoice Role
echo .........Try again !!
exit ;
fi
fi
fi
**** Thank you in advance for your help!!