#!/bin/sh
#
# chkconfig:	2345 01 99
# description:	Starts and stops each hotpluggable subsystem.
#		On startup, may simulate hotplug events for devices
#		that were present at boot time, before filesystems
#		used by /sbin/hotplug became available.
#
# $Id: hotplug,v 1.1 2001/01/17 00:52:49 dbrownell Exp $
#

## change name of hotplug script
echo "/etc/hotplug/sbin.hotplug" > /proc/sys/kernel/hotplug

case "$1" in
start|stop|restart|status)
    for RC in /etc/hotplug/*.rc
    do
	$RC $1
    done
    ;;
help|*)
    echo "Usage: $0 [help|start|stop|restart|status]"
    exit 1
    ;;
esac
