#! /bin/csh -f

#
# ask about group permissions
#
source scripts/aliases

	E "FireWall-1 access and execution permissions"
	E "-------------------------------------------"
	E "Usually, FireWall-1 is given group permission for access and execution."
	E "You may now name such a group or instruct the installation procedure"
	E "to give no group permissions to FireWall-1. In the latter case, only the"
	E "Super-User will be able to access and execute FireWall-1."

getgroup:
	E ""
	E -n 'Please specify group name [<RET> for no group permissions]: '

	set grp = $<

	set msg = "Group $grp will be used"
	if ("X$grp" == X) then 
		set msg = "No group permissions will be granted"
		set grp = "no-group"
	endif

	E ""
	E -n  $msg". Is this ok (y/n) [y] ? "
	get yn

	if ("X$yn" != X && "X$yn" != Xy) goto getgroup

#
# get a random num.
#

	fwrand

	set grpdef="$grp"
	set grpset="$grpdef"
	if ($#argv == 1) then
		echo "Grpdef=$grpdef" >> $1
		echo "Grpset=$grpset" >> $1
	endif
	exit 0
