git: 9front

Download patch

ref: c6b681c48e27d4d5d258c393567878b55d1a43e2
parent: aa4f235656a4b498113599efc9928da900861e29
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 8 17:57:24 EDT 2021

nusbrc: ignore rndis ethernet in /rc/bin/nusbed, handled by /sys/src/9/boot/nusbrc (thanks romano)

--- a/rc/bin/nusbrc
+++ b/rc/bin/nusbrc
@@ -13,6 +13,8 @@
 		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
--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -33,12 +33,11 @@
 			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
--