#
# This gets 'sysfs' directory if it exists.
#			Shuu Yamaguchi <shuu@dosAster.com>
# $Id: func_sysfs,v 1.3 2004/04/04 15:49:41 shuu Exp shuu $

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

# SYSFS_DIR: sysfs dir
get_sysfs() {
	while read dev mnt type tmp
	do
		if [ "$type" = "sysfs" ];then
			SYSFS_DIR=$mnt
			break;
		fi
	done < /etc/mtab
}
