#!/bin/sh
#
# /etc/rc.d/iprinitd: start/stop iprinit daemon
#

case $1 in
start)
	if [ ! -d /sys/class/scsi_generic ] ; then
           modprobe sg
	fi
	/sbin/iprinit --daemon
	;;
stop)
	killall -q /sbin/iprinit
	;;
restart)
	$0 stop
	sleep 2
	$0 start
	;;
*)
	echo "usage: $0 [start|stop|restart]"
	;;
esac

# End of file
