#!/bin/sh
# hwsetup	Detect hardware
#
# chkconfig: 345 05 95
# description:	Hacked kudzu from Knoppix
# config: /etc/sysconfig/knoppix

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

LOCKFILE=/var/lock/subsys/hwsetup
RETVAL=0

start()
{
	hwsetup
	RETVAL=$?
	return $RETVAL
}

stop()
{
	return 0
}

restart()
{
	start
}

reload()
{
	return 0
} 

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	restart)
		restart
		;;
	condstop)
		if [ -e "$LOCKFILE" ]; then
			stop
		fi
		;;
	condrestart)
		if [ -e "$LOCKFILE" ]; then
			restart
		fi
		;;
	condreload)
		if [ -e "$LOCKFILE" ]; then
			reload
		fi
		;;
	*)
		msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload}"
		RETVAL=1
esac

exit $RETVAL
