#	@(#)labelfsname	1.2	/sccs/src/cmd/sadmin/shell/s.labelfsname
#	given the output of /etc/labelit, return the file system name and
#	volume label as shell variable assignments.

#!	chmod +x ${file}

if [ $# -eq 0 ]
then
	echo >&2 "Usage:  $0 /etc/labelit-output"
	exit 1
fi

echo $*  |
	sed -n 's/Current fsname: \([a-zA-Z0-9]*\), Current volname: \([^ ,]*\), .*/fsname=\1 label=\2/p'