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.
Nobody/Anonymous ( nobody ) - 2004-01-26 04:44
5
Open
None
Nobody/Anonymous
None
None
Public
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use