at91: introduce vendor_model scheme and drop board names
[openwrt/staging/wigyori.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.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11
12 atmel,sama5d3-xplained)
13 ucidef_set_interfaces_lan_wan "eth0" "eth1"
14 ;;
15
16 *)
17 ucidef_set_interface_lan "eth0"
18 ;;
19
20 esac
21
22 board_config_flush
23
24 exit 0