9ab3c8174d9627d3bdfe651e1a36fb9af20059e8
[openwrt/staging/rmilecki.git] / target / linux / mvebu / cortexa72 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2014-2016 OpenWrt.org
4 # Copyright (C) 2016 LEDE-Project.org
5 #
6
7 . /lib/functions/uci-defaults.sh
8
9 board_config_update
10
11 board=$(board_name)
12
13 case "$board" in
14 marvell,armada8040-mcbin-doubleshot|\
15 marvell,armada8040-mcbin-singleshot)
16 ucidef_set_interfaces_lan_wan "eth0 eth1 eth3" "eth2"
17 ;;
18 marvell,armada8040-db)
19 ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
20 ;;
21 marvell,armada7040-db)
22 ucidef_set_interfaces_lan_wan "eth0 eth2" "eth1"
23 ;;
24 *)
25 ucidef_set_interface_lan "eth0"
26 ;;
27 esac
28
29 board_config_flush
30
31 exit 0