[OpenWrt-Devel] [PATCH 04/13] ramips: sort boards alphabetically and optimize base-files/etc/{diag.sh, board.d/*} scripts

Michael Bastian mbastian at netcologne.de
Mon Jul 27 05:37:41 EDT 2015


> 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 334e889..a781f46 100755
[...]
> + re6500)
> + ucidef_set_interface_lan "eth0.1"
> + ucidef_add_switch "switch0" "1" "1"
> + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
> + ;;

The four physical lan ports on the Linksys RE6500 are connected to switchport 0-3 so it must read:

+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"

Personally I build my images with a WAN port on physical port 1 but since this box has no dedicated WAN port labeled on
the backside it might be confusing use something like this as a default?

--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -104,7 +104,13 @@ ramips_setup_interfaces()
 		ucidef_add_switch_vlan "switch0" "2" "0 9t"
 		;;
 
-        re6500 | \
+        re6500)
+		ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+		ucidef_add_switch "switch0" "1" "1"
+		ucidef_add_switch_vlan "switch0" "1" "1 2 3 6t"
+		ucidef_add_switch_vlan "switch0" "2" "0 6t"
+		;;
+
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list