From 459fd45daaaf7748c25386751986cb7bcf000576 Mon Sep 17 00:00:00 2001
From: Tim Niemeyer <tim.niemeyer@mastersword.de>
Date: Sat, 21 Nov 2015 08:19:13 +0100
Subject: [PATCH] wr841: find v10 and set BOARD config

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Steffen Pankratz <kratz00@gmx.de>
---
 bsp/default/root_file_system/etc/rc.local.tpl        |  3 +++
 bsp/wr841/root_file_system/etc/network.tl-wr841n-v10 | 11 +++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 bsp/wr841/root_file_system/etc/network.tl-wr841n-v10

diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl
index b40c75f6..d4ca6e4e 100755
--- a/bsp/default/root_file_system/etc/rc.local.tpl
+++ b/bsp/default/root_file_system/etc/rc.local.tpl
@@ -16,6 +16,9 @@ case "$BOARD" in
     tl-wr841n-v7)
         BOARD=tl-wr841nd-v7
         ;;
+    tl-wr841n-v9)
+        grep "v10" /var/sysinfo/model && BOARD=tl-wr841n-v10
+        ;;
 esac
 if ! uci get board.model.name; then
     uci set board.model.name=$BOARD
diff --git a/bsp/wr841/root_file_system/etc/network.tl-wr841n-v10 b/bsp/wr841/root_file_system/etc/network.tl-wr841n-v10
new file mode 100644
index 00000000..02cefd89
--- /dev/null
+++ b/bsp/wr841/root_file_system/etc/network.tl-wr841n-v10
@@ -0,0 +1,11 @@
+
+WANDEV=eth1
+# WANDEV=eth0
+SWITCHDEV=eth0
+CLIENT_PORTS="1 2 0t"
+WAN_PORTS=
+BATMAN_PORTS="3 4 0t"
+
+CLIENTIF="eth0.1 w2ap"
+ETHMESHMAC=eth1
+ROUTERMAC=eth0
-- 
GitLab