shithub: riscv

Download patch

ref: c7fd8fe47a96d447d8ea327f14314fc1f55f377f
parent: f11526708e7ce1a09a127fde6677e14455f4d1f5
author: cinap_lenrek <[email protected]>
date: Tue Dec 22 20:23:09 EST 2020

nusbrc: delect lenovo camera

--- a/rc/bin/nusbrc
+++ b/rc/bin/nusbrc
@@ -27,12 +27,12 @@
 		case 010106
 			nusb/ptp $id
 		case *
-			# HUAWEI E220 modem
-			if(~ $2$3 12d11003)
+			switch($2$3){
+			case 12d11003 *0403
 				nusb/serial $id
-			# FTDI
-			if(~ $2 0403)
-				nusb/serial $id
+			case 59862113
+				nusb/cam $id
+			}
 		}
 	}
 	fn detach {