7642c06c49f5a2b8f5faa6d168c91329c7c01e2b
[openwrt/openwrt.git] / target / linux / brcm2708 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 # Copyright (C) 2014-2016 OpenWrt.org
3
4 . /lib/functions/uci-defaults.sh
5 . /lib/brcm2708.sh
6 . /lib/functions.sh
7 . /lib/functions/system.sh
8
9 board_config_update
10
11 board=$(brcm2708_board_name)
12
13 case "$board" in
14 rpi-b |\
15 rpi-b-plus |\
16 rpi-2-b |\
17 rpi-3-b)
18 ucidef_set_interface_lan "eth0"
19 ;;
20 esac
21
22 board_config_flush
23
24 exit 0