moutdist: properly detect usb devices.
This commit is contained in:
parent
a96bc88d07
commit
1e86963f80
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ case go
|
||||||
|
|
||||||
echo Please wait... Scanning storage devices...
|
echo Please wait... Scanning storage devices...
|
||||||
|
|
||||||
parts=`{ls /dev/sd??/* >[2]/dev/null | grep -v '/(plan9.*|ctl|log|raw)$'}
|
parts=`{ls /dev/sd[A-Z][0-9]*/* >[2]/dev/null | grep -v '/(plan9.*|ctl|log|raw)$'}
|
||||||
for (i in $parts) {
|
for (i in $parts) {
|
||||||
echo -n ' '^$i
|
echo -n ' '^$i
|
||||||
n=`{echo $i | sed 's;/;_;g'}
|
n=`{echo $i | sed 's;/;_;g'}
|
||||||
|
|
Loading…
Reference in a new issue