From: Chen Minqiang Date: Wed, 7 Aug 2019 00:58:48 +0000 (+0800) Subject: ramips: fix switch ports settings X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51dcde7c9c44a36399a7e11396029e84ff2734a1;p=oweals%2Fopenwrt.git ramips: fix switch ports settings This change the switch settings for: HC5661: 4 lan ports + 1 wan port Y1S: 2 lan ports(G port) + 2 lan ports(E port) + 1 wan port Signed-off-by: Chen Minqiang --- 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 e9f4e98fa5..c0de9d4e50 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -194,6 +194,7 @@ ramips_setup_interfaces() glinet,gl-mt300n|\ glinet,gl-mt750|\ hilink,hlk-7628n|\ + hiwifi,hc5661|\ hiwifi,hc5861b|\ jcg,jhr-n805r|\ jcg,jhr-n825r|\ @@ -348,9 +349,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "4:lan" "6@eth0" ;; - head-weblink,hdrm200|\ - hiwifi,hc5661|\ - lenovo,newifi-y1s) + head-weblink,hdrm200) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0" ;; @@ -383,6 +382,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan:2" "1:lan:1" "4:wan" "6@eth0" ;; + lenovo,newifi-y1s) + ucidef_add_switch "switch0" \ + "1:lan:4" "2:lan:3" "4:lan:2" "5:lan:1" "0:wan" "6@eth0" + ;; linksys,e1700|\ ralink,mt7620a-mt7530-evb) ucidef_add_switch "switch1" \