From b6fa0c74b368fa9a088c0c5aae728395165ab00b Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@Hrusecky.net>
Date: Tue, 24 Jul 2018 08:22:11 +0200
Subject: [PATCH] Hack to support custom board network config

---
 ...ort-for-other-supplied-network-setup.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 patches/openwrt/hack/0001-mvebu-Support-for-other-supplied-network-setup.patch

diff --git a/patches/openwrt/hack/0001-mvebu-Support-for-other-supplied-network-setup.patch b/patches/openwrt/hack/0001-mvebu-Support-for-other-supplied-network-setup.patch
new file mode 100644
index 000000000..0b4b7d9e9
--- /dev/null
+++ b/patches/openwrt/hack/0001-mvebu-Support-for-other-supplied-network-setup.patch
@@ -0,0 +1,29 @@
+From ac2bcfda87007dad48af7517ef082e4ba939de51 Mon Sep 17 00:00:00 2001
+From: Michal Hrusecky <Michal@Hrusecky.net>
+Date: Tue, 24 Jul 2018 08:20:07 +0200
+Subject: [PATCH] mvebu: Support for other supplied network setup
+
+---
+ target/linux/mvebu/base-files/etc/board.d/02_network | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/target/linux/mvebu/base-files/etc/board.d/02_network b/target/linux/mvebu/base-files/etc/board.d/02_network
+index 2c10154..4a0fb3c 100755
+--- a/target/linux/mvebu/base-files/etc/board.d/02_network
++++ b/target/linux/mvebu/base-files/etc/board.d/02_network
+@@ -59,7 +59,11 @@ marvell,armada7040-db)
+ 	ucidef_set_interfaces_lan_wan "eth0 eth2" "eth1"
+ 	;;
+ *)
+-	ucidef_set_interface_lan "eth0"
++	if [ -x /etc/board_network_setup ]; then
++		/etc/board_network_setup
++	else
++		ucidef_set_interface_lan "eth0"
++	fi
+ 	;;
+ esac
+ 
+-- 
+2.18.0
+
-- 
GitLab