#!/bin/sh
########################################################################
# Begin $rc_base/init.d/hotplug
#
# Description : Load modules for system devices
#
# Authors     : Zack Winkles
#
# Version     : 00.02
#
# Notes       :
#
########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

case "${1}" in
	start|restart)
		boot_mesg "Loading modules for system devices..."
		for rc in /etc/hotplug/*.rc
		do
			${rc} ${1}
		done
		echo_ok
		;;
	stop)
		# Remove and Recreate /var/log/hotplug/events
		> /var/log/hotplug/events

		;;
	status)
		for rc in /etc/hotplug/*.rc
		do
			${rc} status
		done
		;;
	*)
		echo "Usage: ${0} {start|stop|restart|status}"
		exit 1
		;;
esac

# End $rc_base/init.d/hotplug
