Skip to content

Commit

Permalink
ramips: mt76x8: tidy up 02_network
Browse files Browse the repository at this point in the history
* fix alphabetic sorting
* consolidate duplicate cases

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
  • Loading branch information
mans0n committed Dec 12, 2021
1 parent 446da70 commit 91e37b6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
Expand Up @@ -34,10 +34,6 @@ ramips_setup_interfaces()
ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"
;;
tplink,tl-mr3020-v3)
ucidef_add_switch "switch0" \
"0:lan" "6@eth0"
;;
asus,rt-n10p-v3|\
asus,rt-n11p-b1|\
asus,rt-n12-vp-b1|\
Expand All @@ -61,10 +57,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"2:lan:2" "3:lan:1" "4:wan" "6@eth0"
;;
duzun,dm06)
ucidef_add_switch "switch0" \
"1:lan" "0:wan" "6@eth0"
;;
duzun,dm06|\
glinet,gl-mt300n-v2)
ucidef_add_switch "switch0" \
"1:lan" "0:wan" "6@eth0"
Expand Down Expand Up @@ -124,6 +117,10 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
;;
tplink,tl-mr3020-v3)
ucidef_add_switch "switch0" \
"0:lan" "6@eth0"
;;
tplink,tl-mr6400-v4)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
Expand Down

0 comments on commit 91e37b6

Please sign in to comment.