0a2a2b144cbd2a1cad75d05f4501abb6efe829a6
[openwrt/staging/blogic.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 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