#!/sbin/sh
#	Copyright (c) 1984, 1986, 1987, 1988, 1989 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	"@(#)filemgmt:bin/fstype.sh	1.1"
# fstype <mountp> <special>
# returns the type of special from vfstab (if any)
MOUNTP=$1
SPECIAL=$2
while read special dummy1 mountp fstype dummy2
do
	if [ "t$SPECIAL" = "t$special" -a "t$MOUNTP" = "t$mountp" ]
	then
		echo $fstype
		exit 0
	fi
done < /etc/vfstab
