[OpenWrt-Devel] [PATCH] ramips: merge cases in 02_network
Adrian Schmutzler
freifunk at adrianschmutzler.de
Sat Aug 31 10:41:27 EDT 2019
This merges three cases with a single switch port.
6t at eth0 and 6 at eth0 should be equivalent.
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
.../linux/ramips/base-files/etc/board.d/02_network | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
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 e19a618389..17b3af8fce 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -274,9 +274,11 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6 at eth0"
;;
comfast,cf-wr800n|\
- hnet,c108)
+ hnet,c108|\
+ tplink,tl-wr902ac-v3|\
+ trendnet,tew-638apb-v2)
ucidef_add_switch "switch0" \
- "4:lan" "6t at eth0"
+ "4:lan" "6 at eth0"
;;
cudy,wr1000)
ucidef_add_switch "switch0" \
@@ -446,14 +448,6 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "6t at eth0"
ucidef_set_interface_wan "usb0"
;;
- tplink,tl-wr902ac-v3)
- ucidef_add_switch "switch0" \
- "4:lan" "6 at eth0"
- ;;
- trendnet,tew-638apb-v2)
- ucidef_add_switch "switch0" \
- "4:lan" "6 at eth0"
- ;;
vocore,vocore2|\
vocore,vocore2-lite)
ucidef_add_switch "switch0" \
--
2.20.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list