#! /bin/csh -f

#
# should FW be started automaticly on boot time ?
#
source scripts/aliases

set bootmodifications=false

dorc:
	E ""
	if ($solaris2) then
		E -n "Do you wish to start $product automatically from /etc/rc3.d (y/n) [y] ? "
	else if ($hpux == 10) then
		E -n "Do you wish to start $product automatically from /sbin/rc2.d (y/n) [y] ? "
	else if ($hpux == 9) then
		E -n "Do you wish to start $product automatically from /etc/rc (y/n) [y] ? "
		set rcfile = /etc/rc
	else if ($aix == 1) then
		E -n "Do you wish to start $product automatically from /etc/rc.net (y/n) [y] ? "
		set rcfile = /etc/rc.net
	else
		E -n "Do you wish to start $product automatically from /etc/rc.local (y/n) [y] ? "
		set rcfile = /etc/rc.local
	endif
	get dans

	if ("X$dans" == "Xy" || "X$dans" == "X") then
		set bootmodifications=true
	endif

	if ($#argv == 1) then
		echo "Bootmodifications=$bootmodifications" >> $1
		if ($?rcfile) then
			echo "Rcfile=$rcfile" >> $1
		endif
	endif
	fwrand

	exit 0
