]> git.lizzy.rs Git - plan9front.git/commitdiff
Prevent nusb/disk and nusb/kb from blocking nusbrc
authorgoogle <google@daverabbitz.ath.cx>
Thu, 6 Sep 2012 01:15:59 +0000 (13:15 +1200)
committergoogle <google@daverabbitz.ath.cx>
Thu, 6 Sep 2012 01:15:59 +0000 (13:15 +1200)
sys/src/9/boot/nusbrc

index f61826098ae58f7f761ae8c6d3fe726bb94d5e55..afa8ac5dc0df36966b475a4c539fe12efc034261 100755 (executable)
@@ -10,11 +10,11 @@ if(! nusb/usbd)
        fn attach {
                switch($4){
                case *03
-                       nusb/kb $1
+                       nusb/kb $1 &
                case *08
-                       nusb/disk $1
                        @{
                                rfork ne
+                               nusb/disk $1
                                cd '#σ/usb'
                                for(dev in sdU^$1.*) if(test -d $dev) {
                                        diskparts $dev