2015-11-22 08:04:37 +00:00
|
|
|
#!/bin/sh
|
2016-03-08 18:11:55 +00:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2015-11-22 08:04:37 +00:00
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2015-11-22 08:04:37 +00:00
|
|
|
. /lib/brcm2708.sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
|
|
|
board=$(brcm2708_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
rpi-b |\
|
|
|
|
rpi-b-plus |\
|
2016-03-08 18:11:55 +00:00
|
|
|
rpi-2-b |\
|
|
|
|
rpi-3-b)
|
2015-11-22 08:04:37 +00:00
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|