#! /bin/csh -f

#
# Replace this comment with a detailed description of your script
#
#

	if (!($?vprefix)) then
		set vprefix=$FWDIR
		set pprefix=$FWDIR
	endif

	set fw1_management = `cat $pprefix/conf/product.conf | grep -i management | awk -F\= '{print $2}'`
	set fw1_firewall = `cat $pprefix/conf/product.conf | grep -i firewall | awk -F\= '{print $2}'`
	set fw1_unlimit = `cat $pprefix/conf/product.conf | grep -i unlimit | awk -F\= '{print $2}'`
	set fw1_auth = `cat $pprefix/conf/product.conf | grep -i auth | awk -F\= '{print $2}'`

	if ("X$fw1_management" == "X") set fw1_management = 0
	if ("X$fw1_firewall" == "X") set fw1_firewall = 0
	if ("X$fw1_unlimit" == "X") set fw1_unlimit = 0
	if ("X$fw1_auth" == "X") set fw1_auth = 0


	if ($#argv == 1) then
		echo "FireWall=$fw1_firewall" >> $1
		echo "Management=$fw1_management" >> $1
	endif


ok:
	exit 0

abort:
	exit 1
