summaryrefslogtreecommitdiff
path: root/sys/src/9/boot
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-10-20 19:53:57 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-10-20 19:53:57 +0200
commit796e5e6000677a39577d545e4603ce251e7cbfe9 (patch)
tree1ac9ee3fa520c13a26a708169b6b1023af1a76c8 /sys/src/9/boot
parent37dcb25eee726a6e207963e737e12cc5a95ca398 (diff)
nusbrc: support for raspi3 ethernet
Diffstat (limited to 'sys/src/9/boot')
-rwxr-xr-xsys/src/9/boot/nusbrc8
1 files 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
+ }
}
}
}