git: 9front

Download patch

ref: 8f0ba0fd834d79473876edaf53c520f29b81bf02
parent: 708c7252feb3520083d2c1e5faf59cd2a6087e52
author: stanley lieber <stanley.lieber@gmail.com>
date: Sat Apr 23 16:37:27 EDT 2011

moutdist: properly detect usb devices.

--- a/rc/bin/inst/mountdist
+++ b/rc/bin/inst/mountdist
@@ -45,7 +45,7 @@
 
 	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) {
 		echo -n '	'^$i
 		n=`{echo $i | sed 's;/;_;g'}
--