#!/bin/bash
################################################
#
# Spin down the given SCS disk(s).
#
# SCSI disks (or disks that understand SCSI commands)
# are assumed. By default, the immediate bit is set so the
# command should return immediately. The disk however will
# take 10 seconds or more to spin down. The '-w' option
# causes each stop to wait until the disk reports that it
# has stopped.
#
# This script assumes the sg3_utils package is installed.
#
###############################################
verbose=""
immediate="-i"
usage()
{
echo "Usage: scsi_stop [-h] [-v] [-w]