diff options
Diffstat (limited to 'scripts/scsi_satl')
-rwxr-xr-x | scripts/scsi_satl | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/scsi_satl b/scripts/scsi_satl index abaa6fc4..60994225 100755 --- a/scripts/scsi_satl +++ b/scripts/scsi_satl @@ -58,15 +58,6 @@ usage() echo "Check <device> for SCSI to ATA Translation Layer (SATL) support" } -if (( $# < 1 )) - then - usage - exit 1 -fi - -# opt=$1 -# echo ${opt##-*} - opt="$1" while test ! -z "$opt" -a -z "${opt##-*}"; do opt=${opt#-} @@ -81,6 +72,12 @@ while test ! -z "$opt" -a -z "${opt##-*}"; do opt="$1" done +if [ $# -lt 1 ] + then + usage + exit 1 +fi + for command in "sg_inq" "sg_vpd" "sg_vpd -p di" "sg_vpd -p ai" "sg_luns" \ "sg_turs" "sg_requests -s" "sg_senddiag -t" "sg_modes -a" \ "sg_sat_identify" |