2015-11-22 08:04:37 +00:00
|
|
|
#!/bin/sh
|
2016-03-08 18:11:55 +00:00
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
2017-03-05 20:16:06 +00:00
|
|
|
# Copyright (C) 2017 LEDE project
|
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
|
2016-03-08 18:11:55 +00:00
|
|
|
rpi-2-b |\
|
2017-03-05 20:16:06 +00:00
|
|
|
rpi-3-b |\
|
|
|
|
rpi-b |\
|
|
|
|
rpi-b-plus)
|
2015-11-22 08:04:37 +00:00
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
2017-03-05 20:16:07 +00:00
|
|
|
rpi-zero-w)
|
|
|
|
ucidef_set_interface_lan "wlan0"
|
|
|
|
;;
|
2015-11-22 08:04:37 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|