at91: switch from uci-defaults to board.d
[openwrt/svn-archive/archive.git] / target / linux / at91 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2014-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults-new.sh
7 . /lib/at91.sh
8
9 board_config_update
10
11 case "$(at91_board_name)" in
12
13 sama5d3_xplained)
14 ucidef_set_interfaces_lan_wan "eth0" "eth1"
15 ;;
16
17 *)
18 ucidef_set_interface_lan "eth0"
19 ;;
20
21 esac
22
23 board_config_flush
24
25 exit 0