all: drop old uci-defaults.sh
[openwrt/svn-archive/archive.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 . /lib/imx6.sh
8
9 board=$(imx6_board_name)
10
11 board_config_update
12
13 case "$board" in
14 *gw51xx |\
15 *gw52xx)
16 ucidef_set_interface_lan 'eth0'
17 ;;
18 *gw53xx |\
19 *gw54xx |\
20 *gw552x)
21 ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
22 ;;
23 *wandboard)
24 ucidef_set_interface_wan 'eth0'
25 ;;
26 esac
27
28 board_config_flush
29
30 exit 0