-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not hardcode eth0 in traits/network/client-mode/files/etc/config/network #8
Comments
There are files like |
Sorry for the delay, network/client-mode uses an old way to handle configuration (directly writes to For a sample see https://github.com/krebscode/minikrebs/blob/master/traits/network/wifi-client/files/etc/firstrun.d/10_wifi_client Regards |
How is that different from using See http://wiki.openwrt.org/doc/uci#defaults:
Probably the OpenWrt way is to drop a file into Please see what I have written at probonopd#1 (comment) - not tested yet, though (I don't have a serial console available right now for testing in case it goes bad...) |
oh oh, it seems i have rebuilt something which existed before in openwrt anyway : |
I don't see how this commit closes this issue... |
somehow while merging your code github decided to close this issue ... |
I have a couple of devices, and the name of the main Ethernet port is different on each one:
eth0
,eth0.1
,eth1
.Bad things happen if the image contains the wrong name in
/etc/configuration/network
. For example, the A5-V11 router useseth0.1
rather thaneth0
oreth1
, so be aware of that in order for the wired Ethernet to work. You need to change/etc/configuration/network
accordingly or the device will not be accessible after flashing without using a serial adapter to unbrick (or possibly OpenWrt Failsafe).I see there has been work in this area
51a66f7
Is it possible to configure https://github.com/krebscode/minikrebs/blob/master/traits/network/client-mode/files/etc/config/network in a way that it does not hardcode
eth0
?The text was updated successfully, but these errors were encountered: