[openwrt/openwrt] ramips: correct switch config of Youku yk1

LEDE Commits lede-commits at lists.infradead.org
Fri Apr 2 15:05:38 BST 2021


adrian pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/b8eb602934f5e02d8a15678a82dd516b4b7765ff

commit b8eb602934f5e02d8a15678a82dd516b4b7765ff
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sun Mar 21 17:01:49 2021 +0800

    ramips: correct switch config of Youku yk1
    
    There are only two lan ports and one wan port on Youku yk1
    
    Fixes: e9baf8265bb8 ("ramips: add support for Youku YK1")
    
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
    [add Fixes:]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
    (cherry picked from commit b88d2850c66d7dc937e570661a047c647c588af5)
---
 target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index e614de5010..398d275dae 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -24,7 +24,6 @@ ramips_setup_interfaces()
 	ralink,mt7620a-mt7610e-evb|\
 	ralink,mt7620a-v22sg-evb|\
 	sanlinking,d240|\
-	youku,yk1|\
 	zbtlink,zbt-ape522ii|\
 	zbtlink,zbt-we826-16m|\
 	zbtlink,zbt-we826-32m|\
@@ -217,6 +216,10 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"0:lan" "4:wan" "6 at eth0"
 		;;
+	youku,yk1)
+		ucidef_add_switch "switch0" \
+			"0:lan" "1:lan" "4:wan" "6 at eth0"
+		;;
 	zbtlink,zbt-we1026-5g-16m)
 		ucidef_add_switch "switch0" \
 			"0:lan" "6t at eth0"



More information about the lede-commits mailing list