shithub: riscv

Download patch

ref: 6a182d56b738f36e32427b8696c8ab03794ec9a2
parent: 4ad63a4c561b2eb4c759da5f29648a499c659c9e
author: stanley lieber <[email protected]>
date: Sun Jun 29 10:58:03 EDT 2014

nusbrc: ensure rpi ethernet always appears as /net/etherU0

--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -48,8 +48,9 @@
 					}
 				}&}
 			case *
+				# Raspberry Pi ethernet will always appear as /net/etherU0
 				if(~ $2 0424)
-					nusb/ether -t smsc $etherargs $id
+					nusb/ether -t smsc $etherargs $1:0
 			}
 		}
 	}