[source] ramips: remove fixed lan/wan interface for switch configs

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 15 02:06:35 PDT 2016


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/b35dd9584e50b02d709f67200572bc49866edf03

commit b35dd9584e50b02d709f67200572bc49866edf03
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Wed Oct 12 19:24:41 2016 +0200

    ramips: remove fixed lan/wan interface for switch configs
    
    Don't set the lan/wan interface when using ucidef_add_switch. This
    results into a wan interface albeit all ports a annotated as lan ports.
    
    ucidef_add_switch takes care of setting the correct lan/wan interface
    according to the annotation of the ports.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/ramips/base-files/etc/board.d/02_network | 1 -
 1 file changed, 1 deletion(-)

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 5ad9a13..7eab5f2 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -24,7 +24,6 @@ ramips_setup_rt3x5x_vlans()
 			lanports="$port:lan $lanports"
 		fi
 	done
-	ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
 	ucidef_add_switch "rt305x" $lanports $wanports "6 at eth0"
 }
 



More information about the lede-commits mailing list