sunxi: bring up DSA b53 switch on Lamobo R1
[openwrt/staging/stintel.git] / target / linux / sunxi / base-files / etc / board.d / 02_network
1 #
2 # Copyright (C) 2013-2015 OpenWrt.org
3 #
4
5 . /lib/functions/uci-defaults.sh
6
7 board_config_update
8
9 case $(board_name) in
10 friendlyarm,nanopi-r1)
11 ucidef_set_interfaces_lan_wan "eth1" "eth0"
12 ;;
13 lamobo,lamobo-r1)
14 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
15 ;;
16 olimex,a20-olinuxino-micro)
17 ucidef_set_interface_lan "wlan0"
18 ;;
19 xunlong,orangepi-r1)
20 ucidef_set_interfaces_lan_wan "eth0" "eth1"
21 ;;
22 *)
23 ucidef_set_interface_lan "eth0"
24 ;;
25 esac
26
27 board_config_flush
28
29 exit 0