]> git.lizzy.rs Git - plan9front.git/commitdiff
nusbrc: ignore rndis ethernet in /rc/bin/nusbed, handled by /sys/src/9/boot/nusbrc...
authorcinap_lenrek <cinap_lenrek@felloff.net>
Thu, 8 Apr 2021 19:57:24 +0000 (21:57 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Thu, 8 Apr 2021 19:57:24 +0000 (21:57 +0200)
rc/bin/nusbrc
sys/src/9/boot/nusbrc

index fdc6b2f375fd8be9db61993aed518517dbd8971d..63a28b25b04f3da75323ffffb8b96caa339e0ade 100755 (executable)
@@ -13,6 +13,8 @@ if(! bind -a '#u' /dev)
                switch($4){
                case *01
                        nusb/audio $id
+               case ff0202
+                       # RNDIS; handled by /sys/src/9/boot/nusbrc
                case *02
                        # serial and ethernet
                        nusb/serial $id
index 43ce0a6e11b99b78c7624e9e9269bccb81d05961..5f2a4d40759d225e659aa11cacec756b439923e5 100755 (executable)
@@ -33,12 +33,11 @@ if(! nusb/usbd)
                        switch($4){
                        case *03
                                nusb/kb $id
+                       case ff0202
+                               nusb/ether -t rndis $etherargs $id
                        case *02
-                               # RNDIS, otherwise CDC ethernet
-                               if(~ $4 ff0202)
-                                       nusb/ether -t rndis $etherargs $id
-                               if not
-                                       nusb/ether $etherargs $id
+                               # CDC ethernet
+                               nusb/ether $etherargs $id
                        case *08
                                if(nusb/disk $id) @{
                                        rfork ne