Skip to content

Commit 8baf3c5

Browse files
committed
Update radxa-e54c.conf - fix netplan ethenet wan port.
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).
1 parent 68409a3 commit 8baf3c5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

config/boards/radxa-e54c.conf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() {
6161
invert=0
6262
EOF
6363

64-
# Internal Ethernet interface can't get an IP address and shouldn't be managed by NetworkManager so make it unmanaged.
64+
# Internal Ethernet interface can't get an IP address and shouldn't be managed by NetworkManager so make it unmanaged.
6565
display_alert "$BOARD" "Creating Board Support Internal Switch Config" "info"
6666
cat <<- EOF > "${destination}"/etc/NetworkManager/conf.d/99-unmanaged-devices.conf
6767
[main]
@@ -72,3 +72,12 @@ function post_family_tweaks_bsp__radxa_e54c_enable_leds() {
7272
EOF
7373

7474
}
75+
76+
function post_post_debootstrap_tweaks__radxa_e54c_wan_fix() {
77+
# Only apply to images with 10-dhcp-all-interfaces.yaml present
78+
[[ -e "${SDCARD}/etc/netplan/10-dhcp-all-interfaces.yaml" ]] || return 0
79+
80+
# Boards ethernet interfaces are lan1, lan2, lan3 and wan
81+
# wan is not detected by pattern "wan[0-9]*" so replace with "wan" if it exists (only in netplan builds)
82+
sed -i 's/wan\[0-9\]\*/wan/g' ${SDCARD}/etc/netplan/10-dhcp-all-interfaces.yaml
83+
}

0 commit comments

Comments
 (0)