[openwrt/openwrt] ramips: mt7620: tidy up 02_network
LEDE Commits
lede-commits at lists.infradead.org
Thu Dec 16 05:30:40 PST 2021
mans0n pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/cc3e390a74818464a0bfc89fc6edb3b1fefed501
commit cc3e390a74818464a0bfc89fc6edb3b1fefed501
Author: Sungbo Eo <mans0n at gorani.run>
AuthorDate: Thu Dec 16 22:14:48 2021 +0900
ramips: mt7620: tidy up 02_network
* fix alphabetic sorting
* consolidate duplicate cases
Signed-off-by: Sungbo Eo <mans0n at gorani.run>
---
.../mt7620/base-files/etc/board.d/02_network | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
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 2d91911766..a00f168672 100644
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -90,15 +90,15 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6 at eth0"
;;
+ buffalo,whr-1166d)
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6 at eth0"
+ ;;
buffalo,whr-300hp2|\
buffalo,whr-600d)
ucidef_add_switch "switch0" \
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "4:wan:5" "6 at eth0"
;;
- buffalo,whr-1166d)
- ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6 at eth0"
- ;;
comfast,cf-wr800n|\
hnet,c108)
ucidef_add_switch "switch0" \
@@ -146,7 +146,8 @@ ramips_setup_interfaces()
"5:lan" "6 at eth0"
ucidef_add_switch_attr "switch1" "enable" "false"
;;
- fon,fon2601)
+ fon,fon2601|\
+ vonets,var11n-300)
ucidef_add_switch "switch0" \
"0:lan" "4:wan" "6 at eth0"
;;
@@ -205,8 +206,8 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6 at eth0"
;;
- tplink,archer-c20i|\
tplink,archer-c20-v1|\
+ tplink,archer-c20i|\
tplink,archer-c50-v1)
ucidef_add_switch "switch0" \
"1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6 at eth0"
@@ -216,10 +217,6 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "6t at eth0"
ucidef_set_interface_wan "usb0"
;;
- vonets,var11n-300)
- ucidef_add_switch "switch0" \
- "0:lan" "4:wan" "6 at eth0"
- ;;
wavlink,wl-wn579x3)
ucidef_add_switch "switch0" \
"5:lan" "4:wan" "6 at eth0"
@@ -341,6 +338,7 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$(mtd_get_mac_binary u-boot 0x1fc20)" 2)
;;
lb-link,bl-w1200|\
+ netis,wf2770|\
phicomm,k2-v22.4|\
phicomm,k2-v22.5|\
phicomm,k2g|\
@@ -359,10 +357,6 @@ ramips_setup_macs()
linksys,e1700)
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
;;
- netis,wf2770)
- wan_mac=$(mtd_get_mac_binary factory 0x2e)
- label_mac=$wan_mac
- ;;
tplink,archer-c2-v1|\
tplink,archer-c20-v1|\
tplink,archer-c20i|\
More information about the lede-commits
mailing list