#!/sbin/sh
#	@(#)invfstab.sh	13.1 (RC International) 91/07/31

#	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)oamintf:files/bin/invfstab.sh	1.2"
DEV=$1
if test -b $DEV -o -c $DEV
then
	BDEVICE="$DEV"
else
	BDEVICE=`devattr "$DEV"  bdevice 2>/dev/null`
	if test "$BDEVICE" = ""
	then
		echo "false"
	 	exit 1	
	fi
fi
while read bdev rdev mountp fstype fsckpass automnt mntopts
do
	case $bdev in
	'#'* | '' )
		continue;;
	'-')
		continue
	esac
	if test "$BDEVICE" = "$bdev"
	then
		echo $fstype $mountp > /tmp/invfstab
		echo "true"
		exit 0
	else
		continue
	fi
done < /etc/vfstab
exit 1
