diff options
-rwxr-xr-x | rc/bin/nusbrc | 2 | ||||
-rwxr-xr-x | sys/src/9/boot/nusbrc | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/rc/bin/nusbrc b/rc/bin/nusbrc index fdc6b2f37..63a28b25b 100755 --- a/rc/bin/nusbrc +++ b/rc/bin/nusbrc @@ -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 diff --git a/sys/src/9/boot/nusbrc b/sys/src/9/boot/nusbrc index 43ce0a6e1..5f2a4d407 100755 --- a/sys/src/9/boot/nusbrc +++ b/sys/src/9/boot/nusbrc @@ -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 |