Update radxa-e54c.conf - fix netplan ethenet wan port. - #9918
#9918Update radxa-e54c.conf - fix netplan ethenet wan port.#9918
Conversation
The Radxa E54C exposes interfaces lan1, lan2, lan3 and wan. The Armbian netplan config uses a match pattern "wan[0-9]*" which does not match the bare interface name "wan" so replace with "wan" if the 10-dhcp-all-interfaces.yaml file exists (only in netplan builds).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR updates the Radxa E54C board configuration by adding a post-debootstrap hook that normalizes WAN interface naming in netplan (replacing numbered WAN names with ChangesRadxa E54C Board Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@config/boards/radxa-e54c.conf`:
- Line 82: The sed invocation uses an unquoted
${SDCARD}/etc/netplan/10-dhcp-all-interfaces.yaml which can break on spaces/glob
characters; update the sed call that currently reads "sed -i
's/wan\[0-9\]\*/wan/g' ${SDCARD}/etc/netplan/10-dhcp-all-interfaces.yaml" to
quote the target path (e.g. sed -i 's/wan\[0-9\]\*/wan/g'
"${SDCARD}/etc/netplan/10-dhcp-all-interfaces.yaml") so the ${SDCARD} expansion
is treated as a single filename and not subject to word-splitting or globbing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: fec84fc2-fab4-4faf-8325-ee068f782784
📒 Files selected for processing (1)
config/boards/radxa-e54c.conf
|
✅ This PR has been reviewed and approved — all set for merge! |
Description
The Radxa E54C exposes interfaces lan1, lan2, lan3 and wan. The Armbian netplan config uses a match pattern "wan[0-9]*" which does not match the bare interface name "wan" so replace with "wan" if the 10-dhcp-all-interfaces.yaml file exists (only in netplan builds).
How Has This Been Tested?
Checklist:
Summary by CodeRabbit
Bug Fixes
Chores