ba4b9304266b062c6ecfb8dc6d2c3d6d46f090c1
[openwrt/staging/rmilecki.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 ucidef_set_interfaces_lan_wan "lan0 lan1" "wan"
19 ;;
20 marvell,armada-3720-db|\
21 methode,udpu)
22 ucidef_set_interfaces_lan_wan "eth1" "eth0"
23 ;;
24 *)
25 ucidef_set_interface_lan "eth0"
26 ;;
27 esac
28
29 board_config_flush
30
31 exit 0