aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2021-12-16 22:14:48 +0900
committerSungbo Eo <mans0n@gorani.run>2021-12-16 22:28:58 +0900
commitcc3e390a74818464a0bfc89fc6edb3b1fefed501 (patch)
treeafc4911905c54573cb635f40a261f000a1bb3930 /target/linux/ramips
parent444b4ea4a479d76761ee4833cb340b442dac662a (diff)
downloadupstream-cc3e390a74818464a0bfc89fc6edb3b1fefed501.tar.gz
upstream-cc3e390a74818464a0bfc89fc6edb3b1fefed501.tar.bz2
upstream-cc3e390a74818464a0bfc89fc6edb3b1fefed501.zip
ramips: mt7620: tidy up 02_network
* fix alphabetic sorting * consolidate duplicate cases Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/mt7620/base-files/etc/board.d/02_network22
1 files 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@eth0"
;;
+ buffalo,whr-1166d)
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6@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@eth0"
;;
- buffalo,whr-1166d)
- ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6@eth0"
- ;;
comfast,cf-wr800n|\
hnet,c108)
ucidef_add_switch "switch0" \
@@ -146,7 +146,8 @@ ramips_setup_interfaces()
"5:lan" "6@eth0"
ucidef_add_switch_attr "switch1" "enable" "false"
;;
- fon,fon2601)
+ fon,fon2601|\
+ vonets,var11n-300)
ucidef_add_switch "switch0" \
"0:lan" "4:wan" "6@eth0"
;;
@@ -205,8 +206,8 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6@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@eth0"
@@ -216,10 +217,6 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0"
ucidef_set_interface_wan "usb0"
;;
- vonets,var11n-300)
- ucidef_add_switch "switch0" \
- "0:lan" "4:wan" "6@eth0"
- ;;
wavlink,wl-wn579x3)
ucidef_add_switch "switch0" \
"5:lan" "4:wan" "6@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|\