kirkwood: remove redundant code in etc/board.d/02_network
authorPaul Wassi <p.wassi@gmx.at>
Mon, 24 Oct 2016 13:19:52 +0000 (15:19 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 26 Oct 2016 10:37:45 +0000 (12:37 +0200)
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>
target/linux/kirkwood/base-files/etc/board.d/02_network

index 678fe999152d1f8caa23f4b6640f279b038dd051..f91e8a3252260ec61a71c731bbe316ecf2cf4202 100755 (executable)
@@ -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"
        ;;