-
Notifications
You must be signed in to change notification settings - Fork 96
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
Fix lime-config fail when there is no lower iface #1080
Fix lime-config fail when there is no lower iface #1080
Conversation
Do not assume that an interface that is called "wan" or "lan" has a link to a lower interface in /sys/class/net. It is not always the case.
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1080 +/- ##
==========================================
- Coverage 79.56% 79.53% -0.04%
==========================================
Files 53 53
Lines 4561 4564 +3
==========================================
+ Hits 3629 3630 +1
- Misses 932 934 +2 ☔ View full report in Codecov by Sentry. |
Uh... Unexpected. Do you have idea if this is a new thing of OpenWrt 23? |
I believe this is because The |
Anyway it is something new... I didn't see such messages when using OpenWrt 19.07 (cannot remember if I used also OpenWrt 22) on YouHua WR1200JS that has a very similar DTS... Mah... |
Looks good to me too, thanks @pony1k |
Sorry for not testing before. So I think we should run
|
You're right. If I had tried activating dhcp for the wan entry, it would probably have failed. What you are proposing looks good. |
On a mercusys mr70x, lime-config does not work. It throws the following error:
It seems that an interface that is called "wan" does not always have link to a lower interface in /sys/class/net. This is how I would like to fix it. I've tested it already on a mercusys mr70x and it is working fine.