brcm2708: add device detection and use it for network, leds and preinit
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 # Copyright (C) 2014-2015 OpenWrt.org
3
4 . /lib/functions/uci-defaults-new.sh
5 . /lib/brcm2708.sh
6 . /lib/functions.sh
7 . /lib/functions/system.sh
8
9 board_config_update
10
11 ucidef_set_interface_loopback
12
13 board=$(brcm2708_board_name)
14
15 case "$board" in
16 rpi-b |\
17 rpi-b-plus |\
18 rpi-2-b)
19 ucidef_set_interface_lan "eth0"
20 ;;
21 esac
22
23 board_config_flush
24
25 exit 0