shithub: riscv

Download patch

ref: a2a95b615e5fb4a4c8b9a710a79cd7c36d1ad16c
parent: f9846213d1877bac1931d6b8a17dfc51bb44bdd4
author: cinap_lenrek <cinap_lenrek@localhost>
date: Sat Jul 30 03:34:17 EDT 2011

nusb: fix race

--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -5,6 +5,8 @@
 if(! nusb/usbd)
 	exit
 
+bind -a '#σ/usb' /dev
+
 fn dev {
 	switch($4){
 	case *03
@@ -15,4 +17,3 @@
 }
 rc </dev/usbevent &
 
-bind -a '#σ/usb' /dev