usb drives won't match sd??. use sd[A-Z][0-9]* instead.

This commit is contained in:
stanley lieber 2011-04-17 20:19:18 +00:00
parent 39b26c79b8
commit 55a28480b2

View file

@ -56,7 +56,7 @@ fn kbmap{
fn readmethod{
echo
echo Storage devices
for(i in /dev/sd??){
for(i in /dev/sd[A-Z][0-9]*){
echo -n local!^$i' '
echo `{sed 's/inquiry[ ]+//g; q' $i/ctl}\
partitions: `{cat $i/ctl | grep part | awk '{print $2}'}