]> git.lizzy.rs Git - plan9front.git/commitdiff
nusbrc: ensure rpi ethernet always appears as /net/etherU0
authorstanley lieber <stanley.lieber@gmail.com>
Sun, 29 Jun 2014 18:58:03 +0000 (14:58 -0400)
committerstanley lieber <stanley.lieber@gmail.com>
Sun, 29 Jun 2014 18:58:03 +0000 (14:58 -0400)
sys/src/9/boot/nusbrc

index 29a2d8b567add0108e9823d7a4294bbf642dc0bc..28e467a71a866c2e6066ca04094b92aaba4a8694 100755 (executable)
@@ -48,8 +48,9 @@ if(! nusb/usbd)
                                        }
                                }&}
                        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
                        }
                }
        }