[LEDE-DEV] [PATCH] ramips: Cleanup etc/board.d/02_network

p.wassi at gmx.at p.wassi at gmx.at
Thu Jul 14 00:53:15 PDT 2016


From: Paul Wassi <p.wassi at gmx.at>

Clean-up duplicate cases and fix alphabetical ordering in base-files/etc/board.d/02_network
Signed-off-by: Paul Wassi <p.wassi at gmx.at>
---
linux/ramips/base-files/etc/board.d/02_network |   15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)

diff -rupN a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -92,9 +92,12 @@ ramips_setup_interfaces()
 	wsr-600|\
 	wt1520|\
 	y1|\
+	youku-yk1|\
+	zbt-ape522ii|\
+	zbt-we826|\
 	zbt-wg2626|\
 	zbt-wg3526|\
-	youku-yk1)
+	zbt-wr8305rt)
 		ucidef_add_switch "switch0" \
 			"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6 at eth0"
 		;;
@@ -172,6 +175,7 @@ ramips_setup_interfaces()
 	mzk-ex750np|\
 	na930|\
 	wli-tx4-ag300n|\
+	wmr-300|\
 	wrh-300cr)
 		ucidef_set_interface_lan "eth0"
 		;;
@@ -194,9 +198,6 @@ ramips_setup_interfaces()
 	wl-330n)
 		ucidef_set_interface_lan "eth0.1"
 		;;
-	wmr-300)
-		ucidef_set_interface_lan "eth0"
-		;;
 	mzk-dp150n|\
 	vocore)
 		ucidef_add_switch "switch0" \
@@ -228,12 +229,6 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"1:lan" "2:lan" "0:wan" "6 at eth0"
 		;;
-	zbt-ape522ii|\
-	zbt-we826|\
-	zbt-wr8305rt)
-		ucidef_add_switch "switch0" \
-			"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6 at eth0"
-		;;
 	*)
 		RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
 		if [ -n "${RT3X5X}" ]; then



More information about the Lede-dev mailing list