5cf000cccfe49644a9fddb0ef36cc8190e390e3d
[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 lamobo,lamobo-r1)
12 ucidef_add_switch "switch0" \
13 "4:lan:1" "0:lan:2" "1:lan:3" "2:lan:4" "3:wan" "8@eth0"
14 ;;
15 olimex,a20-olinuxino-micro)
16 ucidef_set_interface_lan "wlan0"
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