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:
parent
0cb5b3181c
commit
18e9fc3615
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue