#! /bin/csh -f

#
# link FW module
#
source scripts/aliases

set path = ( $FWDIR/bin $FWDIR/cisco $path )

linkfwmod:
	if ($hpux) then
		set fwmod = $FWDIR/modules/fwmod.hpux$hpux.o
	else
		set fwmod = $FWDIR/modules/fwmod.`uname -r`.o
	endif
	if ( ! -r $fwmod ) then
		if ( $aix ) then
			ln -sf $FWDIR/modules/fwmod.4.x.o $FWDIR/$module
		else
			ln -s $FWDIR/$module $fwmod
		endif
	endif

	if ($hpux && $?opt) then
		if ("X$opt" == X1 || "X$opt" == X2 || "X$opt" == X3 || "X$opt" == X4) then
			if (! -f /usr/lib/.text_extras_menu) then
				cp $FWDIR/lib/text_extras_menu /usr/lib/.text_extras_menu
				chmod 444 /usr/lib/.text_extras_menu
			endif
		endif
	endif
	exit 0
