ref: 3f08f1d849118c999a7dab5000d1ed4a13cdfbdb
parent: 488add7e5e704480741d2ab10acc7e9a52c311a6
author: cinap_lenrek <cinap_lenrek@localhost>
date: Sat Jul 30 10:15:55 EDT 2011
nusb: make private namespace for usb drivers, add nusb/audio to mkfile
--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -5,15 +5,17 @@
if(! nusb/usbd)
exit
-bind -a '#σ/usb' /dev
-
-fn dev {
- switch($4){
- case *03
- nusb/kb $1
- case *08
- nusb/disk $1
+@{
+ rfork ne
+ fn dev {
+ switch($4){
+ case *03
+ nusb/kb $1
+ case *08
+ nusb/disk $1
+ }
}
+ rc < '#σ/usb/usbevent' &
}
-rc </dev/usbevent &
+bind -a '#σ/usb' /dev
--- a/sys/src/cmd/nusb/mkfile
+++ b/sys/src/cmd/nusb/mkfile
@@ -3,6 +3,7 @@
DIRS=\
lib\
kb\
+ audio\
usbd\
UPDATE=\