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:
@@ -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 |\
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 |\
|
||||
|
||||
Reference in New Issue
Block a user