From: Paul Spooren Date: Mon, 18 May 2026 17:53:49 +0000 (+0200) Subject: scripts: fix lan/wan order of malta in qemustart X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b8a67fa8d5d33acfc8a1997ad0070f0609d3b182;p=thirdparty%2Fopenwrt.git scripts: fix lan/wan order of malta in qemustart OpenWrt's 99-default_network assigns eth0 to lan and eth1 to wan when no target-specific 02_network is present, which is the case for malta. The qemustart bridge block however placed the wan -device before the lan -device, so the guest's eth0 (lan) ended up attached to $BR_WAN and eth1 (wan) to $BR_LAN. Swap the order to match the guest's actual role assignment. Link: https://github.com/openwrt/openwrt/pull/23424 Signed-off-by: Paul Spooren --- diff --git a/scripts/qemustart b/scripts/qemustart index 42d692575d5..568b3587654 100755 --- a/scripts/qemustart +++ b/scripts/qemustart @@ -241,8 +241,8 @@ start_qemu_malta() { # guest machine [ -z "$o_network" ] || { o_qemu_extra+=( - -netdev bridge,id=wan,br="$BR_WAN,helper=$HELPER" -device pcnet,netdev=wan,mac="$MAC_WAN" -netdev bridge,id=lan,br="$BR_LAN,helper=$HELPER" -device pcnet,netdev=lan,mac="$MAC_LAN" + -netdev bridge,id=wan,br="$BR_WAN,helper=$HELPER" -device pcnet,netdev=wan,mac="$MAC_WAN" ) }