08d31caadc0723f01b7df8aa728af75832e009c9
[openwrt/staging/rmilecki.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 friendlyarm,nanopi-r1)
12 ucidef_set_interfaces_lan_wan "eth1" "eth0"
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 olimex,a20-olinuxino-micro)
19 ucidef_set_interface_lan "wlan0"
20 ;;
21 xunlong,orangepi-r1)
22 ucidef_set_interfaces_lan_wan "eth0" "eth1"
23 ;;
24 *)
25 ucidef_set_interface_lan "eth0"
26 ;;
27 esac
28
29 board_config_flush
30
31 exit 0