imx6: Initial support for SolidRun CuBox-i devices based on i.MX6 processors (i1...
[openwrt/openwrt.git] / target / linux / imx6 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2013-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board=$(board_name)
9
10 board_config_update
11
12 case "$board" in
13 cubox-i |\
14 *gw51xx |\
15 *gw52xx |\
16 *gw5904)
17 ucidef_set_interface_lan 'eth0'
18 ;;
19 *gw53xx |\
20 *gw54xx |\
21 *gw552x)
22 ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
23 ;;
24 *wandboard)
25 ucidef_set_interface_wan 'eth0'
26 ;;
27 esac
28
29 board_config_flush
30
31 exit 0