3 # Determine the Vendor of a device
8 # Disks: SEAGATE SAMSUNG
9 # Cdroms: TOSHIBA PHILIPS
17 # <4>scsi_vendor tape 1
19 # <5>scsi_vendor disk 1
20 # <6>scsi_vendor disk 1
22 # <7>scsi_vendor disk 2
25 # Ported to bash 01.07.03 <kieren@tigs.org>
33 SCSIINFO=`grep '^ ' /proc/scsi/scsi | cut -c3-18`
37 if [ "$o" = "Vendor:" ]; then
40 if [[ "$o" == 'Type:' && "$i" == 'Sequenti' ]]; then
43 if [[ "$o" == 'Type:' && "$i" == 'CD-ROM' ]]; then
46 if [[ "$o" == 'Type:' && "$i" == 'Direct-A' ]]; then
59 if [ "$1" == "disk" ]; then
62 if [ "$1" == "cd" ]; then
65 if [ "$1" == "tape" ]; then
72 if [[ "$1" == "disk" && ${#d[@]} -ge $2 ]]; then
75 if [[ "$1" == "cd" && ${#c[@]} -ge $2 ]]; then
78 if [[ "$1" == "tape" && ${#s[@]} -ge $2 ]]; then
84 if [ "$v" == "$3" ]; then