mvebu: add initial support for Globalscale ESPRESSObin-Ultra
[openwrt/openwrt.git] / target / linux / mvebu / cortexa53 / 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 glinet,gl-mv1000|\
15 globalscale,espressobin|\
16 globalscale,espressobin-emmc|\
17 globalscale,espressobin-v7|\
18 globalscale,espressobin-v7-emmc)
19 ucidef_set_interfaces_lan_wan "lan0 lan1" "wan"
20 ;;
21 globalscale,espressobin-ultra)
22 ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "wan"
23 ;;
24 marvell,armada-3720-db|\
25 methode,udpu)
26 ucidef_set_interfaces_lan_wan "eth1" "eth0"
27 ;;
28 *)
29 ucidef_set_interface_lan "eth0"
30 ;;
31 esac
32
33 board_config_flush
34
35 exit 0