usb driver does not present partition data via the ctl file. obtain partition data by performing ls on /dev/sd* directories.

This commit is contained in:
stanley lieber 2011-04-19 01:58:29 +00:00
parent 0cb5b3181c
commit 18e9fc3615

View file

@ -5,7 +5,7 @@ fn showlocaldevs{
for(c in /dev/sd*/ctl){
d=`{echo $c | sed 's,/ctl,,g'}
echo $d':' `{sed 's/inquiry[ ]+//g; q' $c}
for(i in `{awk '/^part/{print $2}' $c})
for(i in `{ls -p $d | grep -v -e 'ctl|raw'})
echo $d'/'$i
echo
}