treewide: use the generic board_name function

Use the generic function instead ot the target specific ones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin
2017-05-12 22:36:07 +02:00
parent ced05ca9e0
commit f12a32630f
94 changed files with 153 additions and 260 deletions

View File

@@ -3,13 +3,12 @@
# Copyright (C) 2017 LEDE project
. /lib/functions/uci-defaults.sh
. /lib/brcm2708.sh
. /lib/functions.sh
. /lib/functions/system.sh
board_config_update
board=$(brcm2708_board_name)
board=$(board_name)
case "$board" in
rpi-2-b |\

View File

@@ -2,11 +2,11 @@
# Copyright (C) 2015-2016 OpenWrt.org
# Copyright (C) 2017 LEDE project
. /lib/functions.sh
. /lib/functions/leds.sh
. /lib/brcm2708.sh
set_state() {
case "$(brcm2708_board_name)" in
case "$(board_name)" in
rpi-2-b |\
rpi-b-plus)
status_led="led1"

View File

@@ -2,10 +2,10 @@
# Copyright (C) 2015-2016 OpenWrt.org
# Copyright (C) 2017 LEDE project
. /lib/brcm2708.sh
set_preinit_iface() {
case "$(brcm2708_board_name)" in
. /lib/functions.sh
case "$(board_name)" in
rpi-2-b |\
rpi-3-b |\
rpi-b |\