git: 9front

Download patch

ref: 1f97b619a299431790ae73c420d212877a4f9036
parent: f368a12568002c571946160e2edba6977df8e25e
author: cinap_lenrek <cinap_lenrek@felloff.net>
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 {
--