moutdist: properly detect usb devices.

This commit is contained in:
stanley lieber 2011-04-23 20:37:27 +00:00
parent a96bc88d07
commit 1e86963f80

View file

@ -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'}