diff mbox

[LEDE-DEV,v2] kirkwood: remove redundant code in etc/board.d/02_network

Message ID trinity-f6723f6f-a910-42a5-9231-c7868abe3669-1477315192463@3capp-gmx-bs13
State Accepted
Headers show

Commit Message

p.wassi@gmx.at Oct. 24, 2016, 1:19 p.m. UTC
From: Paul Wassi <p.wassi@gmx.at>

Remove redundant code: merge boards/cases that share
the same network configuration.
Also fix the alphabetical ordering of the cases.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
---
 linux/kirkwood/base-files/etc/board.d/02_network |   15 ++++---------
 1 file changed, 5 insertions(+), 10 deletions(-)
diff mbox

Patch

diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network
--- a/target/linux/kirkwood/base-files/etc/board.d/02_network
+++ b/target/linux/kirkwood/base-files/etc/board.d/02_network
@@ -14,16 +14,15 @@  case "$board" in
 "dockstar"|\
 "goflexhome"|\
 "goflexnet"|\
-"iconnect"|\
 "ib62x0"|\
+"iconnect"|\
 "nsa310s"|\
-"pogo_e02")
+"pogo_e02"|\
+"sheevaplug"|\
+"sheevaplug-esata")
 	ucidef_set_interface_lan "eth0" "dhcp"
 	;;
-"linksys-audi")
-	ucidef_add_switch "switch0" \
-		"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
-	;;
+"linksys-audi"|\
 "linksys-viper")
 	ucidef_add_switch "switch0" \
 		"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
@@ -31,10 +30,6 @@  case "$board" in
 "guruplug-server-plus")
 	ucidef_set_interface_lan "eth0 eth1" "dhcp"
 	;;
-"sheevaplug" | \
-"sheevaplug-esata")
-	ucidef_set_interface_lan "eth0" "dhcp"
-	;;
 *)
 	ucidef_set_interface_lan "eth0"
 	;;