all: drop old uci-defaults.sh
[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/sunxi.sh
7 . /lib/functions/uci-defaults.sh
8
9 board_config_update
10
11 case "$( sunxi_board_name )" in
12 "olinuxino-micro"*)
13 ucidef_set_interface_lan 'wlan0'
14 ;;
15 "lamobo-r1")
16 ucidef_add_switch "switch0" \
17 "4:lan:1" "0:lan:2" "1:lan:3" "2:lan:4" "3:wan" "8@eth0"
18 ;;
19 *)
20 ucidef_set_interface_lan 'eth0'
21 ;;
22 esac
23
24 board_config_flush
25
26 exit 0