mvebu: add support for GL.iNet GL-MV1000
[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 globalscale,espressobin|\
15 globalscale,espressobin-emmc|\
16 globalscale,espressobin-v7|\
17 globalscale,espressobin-v7-emmc|\
18 glinet,gl-mv1000)
19 ucidef_set_interfaces_lan_wan "lan0 lan1" "wan"
20 ;;
21 marvell,armada-3720-db|\
22 methode,udpu)
23 ucidef_set_interfaces_lan_wan "eth1" "eth0"
24 ;;
25 *)
26 ucidef_set_interface_lan "eth0"
27 ;;
28 esac
29
30 board_config_flush
31
32 exit 0