#!/bin/ash
#
# /etc/sysconfig/hardware/scripts/functions
#
# Common functions for hwconfig
#

. /etc/sysconfig/network/scripts/functions.common

if [ -n "$DEBUG_HWCONFIG" ] ; then
    set -x
fi

mesg () {
    if [ -n "$DEBUG_HWCONFIG" ] ; then
	echo "${SCRIPTNAME}: $@"
    else
	/bin/logger -p kern.warn -t "$SCRIPTNAME" "$@"
    fi
}

# Get the mount point for sysfs
while read MNTPT MNTDIR MNTSYS MNTTYPE; do
    if test "$MNTSYS" = "sysfs"; then
	SYSFS="$MNTDIR"
	break;
    fi 
done </proc/mounts

