782f3ec0d344fff0ae13aaad0d2f3bc5e4e6f7a6
[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 *)
19 ucidef_set_interface_lan 'eth0'
20 ;;
21 esac
22
23 board_config_flush
24
25 exit 0