summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Chaínho <joaochainho@gmail.com>2017-08-31 16:45:39 +0100
committerJo-Philipp Wich <jo@mein.io>2017-12-13 16:29:22 +0100
commitaaa73fea36d71de986aacb4c4622f42d5751c881 (patch)
treec167c9f31ce3480ecd2248f7ad6abbec7b7ce099
parentb69ea02a00758a2bcd3981cfb48cc629ff15cfe3 (diff)
downloadmtk-20170518-aaa73fea36d71de986aacb4c4622f42d5751c881.zip
mtk-20170518-aaa73fea36d71de986aacb4c4622f42d5751c881.tar.gz
mtk-20170518-aaa73fea36d71de986aacb4c4622f42d5751c881.tar.bz2
ar71xx: fix switch port numbering on RB750r2 and RB750UPr2
This patch fixes the switch port numbering on Mikrotik RB750r2 (hEX lite) and RB750UPr2 (hEX PoE lite). Tested on a RB750UPr2. Maybe this patch is applicable to other devices (e.g. RB951Ui-2nD, RB952Ui-5ac2nD) but I have no way to test them. Signed-off-by: João Chaínho <joaochainho@gmail.com> (cherry picked from commit 61027e343025b5f47e7e79db71576e6bd5e97c1d)
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index cb707f6..6d8a5c3 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -142,6 +142,12 @@ ar71xx_setup_interfaces()
wrtnode2q)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
+ rb-750-r2|\
+ rb-750up-r2)
+ ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+ ucidef_add_switch "switch0" \
+ "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+ ;;
all0258n|\
all0315n|\
dlan-hotspot|\