nusbrc: support for raspi3 ethernet
This commit is contained in:
parent
37dcb25eee
commit
796e5e6000
|
@ -51,11 +51,15 @@ if(! nusb/usbd)
|
||||||
}
|
}
|
||||||
case *
|
case *
|
||||||
# Raspberry Pi ethernet will always appear as /net/etherU0
|
# Raspberry Pi ethernet will always appear as /net/etherU0
|
||||||
if(~ $2 0424)
|
if(~ $2 0424){
|
||||||
|
if(~ $3 7800)
|
||||||
|
nusb/ether -t lan78xx $etherargs $1:0
|
||||||
|
if not
|
||||||
nusb/ether -t smsc $etherargs $1:0
|
nusb/ether -t smsc $etherargs $1:0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fn detach {
|
fn detach {
|
||||||
devs='#σc/sdU'^($1 $5)
|
devs='#σc/sdU'^($1 $5)
|
||||||
rm -rf '#σc/usb/'^$1.* '#σc/usbnet/'^$1.* $devs $devs.*
|
rm -rf '#σc/usb/'^$1.* '#σc/usbnet/'^$1.* $devs $devs.*
|
||||||
|
|
Loading…
Reference in a new issue