nusbrc: support for raspi3 ethernet

This commit is contained in:
cinap_lenrek 2018-10-20 19:53:57 +02:00
parent 37dcb25eee
commit 796e5e6000

View file

@ -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
}
}
}
}