#! /bin/sh

# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

#ident	"$Header: labelfsname 1.4 89/10/11 $@(#)sadmin:shell/labelfsname	2.2"
#	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: \(.*\), Current volname: \(.*\), Blocks: .*/fsname=\1 label=\2/p'
