#
# This gets a label of a specified device.
#			Shuu Yamaguchi <shuu@dosAster.com>
# $Id: func_label,v 1.2 2004/04/04 15:50:44 shuu Exp shuu $

if [ -n "$MURASAKI_FUNC_LABEL" ];then
	return
fi
MURASAKI_FUNC_LABEL=1

. ${MURASAKI_SCRIPT_DIR}/func_log

# $1: device file path
label_dos()
{
	confirm_cmd dd
	FS_LABEL=`dd if=$1 skip=71 bs=1 count=11 2>/dev/null`
}

# $1: device file path
label_ext2()
{
	confirm_cmd e2label
	FS_LABEL=`e2label $1`
}
