sunxi: Orange Pi R1: configure USB Ethernet controller.
[openwrt/openwrt.git] / target / linux / sunxi / 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_config_update
9
10 case "$(board_name)" in
11 "olimex,a20-olinuxino-micro")
12 ucidef_set_interface_lan 'wlan0'
13 ;;
14 "lamobo,lamobo-r1")
15 ucidef_add_switch "switch0" \
16 "4:lan:1" "0:lan:2" "1:lan:3" "2:lan:4" "3:wan" "8@eth0"
17 ;;
18 "xunlong,orangepi-r1")
19 ucidef_set_interfaces_lan_wan "eth0" "eth1"
20 ;;
21 *)
22 ucidef_set_interface_lan 'eth0'
23 ;;
24 esac
25
26 board_config_flush
27
28 exit 0