# CHOOSE EITHER scsidevs or rawdevs
# the SCSI devices to measure - WARNING: will be erased.
-#scsidevs="/dev/sde /dev/sdh"
# The raw devices to use
-#rawdevs="/dev/raw/raw1"
-#scsidevs=`ls /dev/sd[a-z] /dev/sd[a-z][a-z]` # all devices, if you use udev
+# rawdevs=${rawdevs:-"/dev/raw/raw1"}
+# scsidevs=`ls /dev/sd[a-z] /dev/sd[a-z][a-z]` # all devices, if you use udev
# result file prefix. date/time+hostname makes unique
# NB ensure the path exists if it includes subdirs
# map given device names into SG device names
i=0
devs=()
-if [ $scsidevs ]; then
+if [ "$scsidevs" ]; then
# we will test for a LUN, the test for a partition
# if the partition number is > 9 this will fail
for d in $scsidevs; do
fi
i=$((i+1))
done
-elif [ $rawdevs ]; then
+elif [ "$rawdevs" ]; then
for r in $rawdevs; do
RES=`raw -q $r`
if [ $? -eq 0 ];then