tcdr doesnt work when other scsi devices are present
Brought to you by:
kobold2
Line 343 works on 2.4.x kernels by adding 'grep -v 0':
SCSICDNR=$(awk '{print }'
/proc/scsi/sg/devices|grep -v '0' | wc -l|t\r -d " ")
The problem is that the for other scsi devices that
aren't cd-rom's , that column appears to be 0, and tcdr
seems to think that their presence in
/proc/scsi/sg/device indicates that they're a cd-rw.