DISKS="/dev/discs/disc0/disc"
DEFAULT_TIMEOUT=241	# default timeout in 30 minutes

APPL=/sbin/hdparm	# +sbindir+ gets rewritten at make time.
TIMEOUT=$DEFAULT_TIMEOUT

OPTIONS="-c1 -S $TIMEOUT"

case "$1" in

	start)
		echo Start $APPL $OPTIONS $DISKS
		$APPL $OPTIONS $DISKS
		;;
	stop)
		echo stop
		$APPL -S 0
		;;
	restart)
		echo restart
		;;	
	*)
		echo "Usage: $(basename $0) {start|stop|restart}"
		exit 1
esac

exit 0
