3 # Copyright (C) 2014-2016 OpenWrt.org
4 # Copyright (C) 2016 LEDE-Project.org
7 . /lib/functions/uci-defaults.sh
12 board=$(mvebu_board_name)
15 armada-385-linksys-caiman|\
16 armada-385-linksys-cobra|\
17 armada-385-linksys-rango|\
18 armada-385-linksys-shelby|\
19 armada-xp-linksys-mamba)
20 ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2"
21 ucidef_add_switch "switch0" \
22 "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth0" "4:wan" "6@eth1"
25 ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
28 ucidef_set_interface_lan "eth0 eth1 eth2 eth3"
30 armada-388-clearfog-pro)
31 ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
32 swconfig list 2>&1 | grep -q switch0 && \
33 ucidef_add_switch "switch0" \
34 "0:lan:5" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5u@eth0" "6:lan:6"
36 armada-388-clearfog-base)
37 ucidef_set_interfaces_lan_wan "eth0" "eth1"
40 ucidef_set_interface_lan "eth0"