#!/bin/sh
#ident	"@(#)lofs.fwi	1.0	92/12/18 FWI"


if [ ! -d /opt/arch ]
then			# /opt not mounted
	exit
fi

#
# Mount or unmount FWI special loopback filesystem mounts
#

case "$1" in
'start')
	/sbin/mount -F lofs /opt/`uname -p` /opt/arch
	;;

'stop')
	if [ -d /opt/arch/bin ] 
	then
		/sbin/umount /opt/arch
	fi
	;;
*)
	echo "Usage: /etc/init.d/lofs.fwi { start | stop }"
	;;
esac
