summaryrefslogtreecommitdiff
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-07-25 12:29:14 +0200
committerMathias Kresin <dev@kresin.me>2017-07-25 21:02:27 +0200
commita5822dbd0f12054d04d1415a98ae995f5438ccd8 (patch)
treed7a3737cf78a7644131c497aac4148a1d0964150 /target/linux/ramips
parent823d35f2fdf552d654a91d07ff48a629f730e50b (diff)
downloadmtk-20170518-a5822dbd0f12054d04d1415a98ae995f5438ccd8.zip
mtk-20170518-a5822dbd0f12054d04d1415a98ae995f5438ccd8.tar.gz
mtk-20170518-a5822dbd0f12054d04d1415a98ae995f5438ccd8.tar.bz2
ramips: DIR-860L-B1 fix switch port numbering
Luci shows switch ports in inverted order on that device. This patch fixes switch port numbering and matches them to the device silkscreen. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 36cdc10..1ec2672 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -135,7 +135,6 @@ ramips_setup_interfaces()
c20i|\
c50|\
dir-645|\
- dir-860l-b1|\
f5d8235-v2|\
gl-mt300a|\
gl-mt300n|\
@@ -197,6 +196,10 @@ ramips_setup_interfaces()
wrh-300cr)
ucidef_set_interface_lan "eth0"
;;
+ dir-860l-b1)
+ ucidef_add_switch "switch0" \
+ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
+ ;;
duzun-dm06)
ucidef_add_switch "switch0" \
"1:lan" "0:wan" "6@eth0"