#!/bin/bash
################################################
#
# Spin up the given SCSI 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 up. The '-w' option
# causes each start to wait until the disk reports that it
# has started.
#
# This script assumes the sg3_utils package is installed.
#
###############################################
verbose=""
immediate="-i"
usage()
{
echo "Usage: scsi_start [-h] [-v] [-w]