From 08d64888eca2337cd7562f7c84bebde3f8eca858 Mon Sep 17 00:00:00 2001
From: Johann Hoffmann <johann.hoffmann@mailbox.org>
Date: Mon, 11 Apr 2022 17:25:43 +0000
Subject: [PATCH] Set eth0 as WAN interface by default for x86

Signed-off-by: Johann Hoffmann <johann.hoffmann@mailbox.org>
---
 target/linux/x86/base-files/etc/board.d/02_network | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network
index 21f054019a..40b0bba9f5 100755
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -22,6 +22,9 @@ traverse-technologies-geos)
 	macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
 	[ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
 	;;
+*)
+	ucidef_set_interface_wan "eth0"
+	;;
 esac
 board_config_flush
 
-- 
2.25.1

