usb drives won't match sd??. use sd[A-Z][0-9]* instead.
This commit is contained in:
parent
39b26c79b8
commit
55a28480b2
1 changed files with 1 additions and 1 deletions
|
@ -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}'}
|
||||
|
|
Loading…
Reference in a new issue