nusbrc: ignore rndis ethernet in /rc/bin/nusbed, handled by /sys/src/9/boot/nusbrc (thanks romano)
This commit is contained in:
parent
aebdf1010b
commit
777b1949b2
2 changed files with 6 additions and 5 deletions
|
@ -13,6 +13,8 @@ if(! bind -a '#u' /dev)
|
||||||
switch($4){
|
switch($4){
|
||||||
case *01
|
case *01
|
||||||
nusb/audio $id
|
nusb/audio $id
|
||||||
|
case ff0202
|
||||||
|
# RNDIS; handled by /sys/src/9/boot/nusbrc
|
||||||
case *02
|
case *02
|
||||||
# serial and ethernet
|
# serial and ethernet
|
||||||
nusb/serial $id
|
nusb/serial $id
|
||||||
|
|
|
@ -33,12 +33,11 @@ if(! nusb/usbd)
|
||||||
switch($4){
|
switch($4){
|
||||||
case *03
|
case *03
|
||||||
nusb/kb $id
|
nusb/kb $id
|
||||||
|
case ff0202
|
||||||
|
nusb/ether -t rndis $etherargs $id
|
||||||
case *02
|
case *02
|
||||||
# RNDIS, otherwise CDC ethernet
|
# CDC ethernet
|
||||||
if(~ $4 ff0202)
|
nusb/ether $etherargs $id
|
||||||
nusb/ether -t rndis $etherargs $id
|
|
||||||
if not
|
|
||||||
nusb/ether $etherargs $id
|
|
||||||
case *08
|
case *08
|
||||||
if(nusb/disk $id) @{
|
if(nusb/disk $id) @{
|
||||||
rfork ne
|
rfork ne
|
||||||
|
|
Loading…
Reference in a new issue