From 796e5e6000677a39577d545e4603ce251e7cbfe9 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 20 Oct 2018 19:53:57 +0200 Subject: [PATCH] nusbrc: support for raspi3 ethernet --- sys/src/9/boot/nusbrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/src/9/boot/nusbrc b/sys/src/9/boot/nusbrc index a5969656f..c92ca3a8d 100755 --- a/sys/src/9/boot/nusbrc +++ b/sys/src/9/boot/nusbrc @@ -51,8 +51,12 @@ if(! nusb/usbd) } case * # Raspberry Pi ethernet will always appear as /net/etherU0 - if(~ $2 0424) - nusb/ether -t smsc $etherargs $1:0 + if(~ $2 0424){ + if(~ $3 7800) + nusb/ether -t lan78xx $etherargs $1:0 + if not + nusb/ether -t smsc $etherargs $1:0 + } } } }