#!/bin/sh
#
# cciss_scsi:	Scan for tape drives attached to Smart Array controllers
#
# chkconfig: 2345 85 85 
# description:  This runs /usr/sbin/cciss_hotplug at start up to make \
#		sure the HP Smartarray (cciss) driver and linux scsi \
#		mid layer agree about what tape drives are online.
#
### BEGIN INIT INFO
# Provides: cciss_scsi
# Required-Start: $local_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Runs cciss_hotplug to detect tape drives.
# Description:  This runs /usr/sbin/cciss_hotplug at start up to make \
#               sure the HP Smartarray (cciss) driver and linux scsi \
#               mid layer agree about what tape drives are online.
### END INIT INFO


# Sanity checks.
[ -x /sbin/cciss_hotplug ] || exit 0
[ -x /sbin/cciss_phys_devs ] || exit 0

# Source function library if it is around
if [ -f /etc/init.d/functions ]
then
	. /etc/init.d/functions
fi

start() {
    /sbin/cciss_hotplug &
}

stop() {
   /bin/true
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	stop
	start
	;;
    *)
	echo "Usage: $0 {start|stop|restart}"
	;;
esac
exit 0 
