2
0
forked from Ivasoft/openwrt

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

@@ -4,11 +4,10 @@
#
. /lib/functions/uci-defaults.sh
. /lib/ipq806x.sh
board_config_update
board=$(ipq806x_board_name)
board=$(board_name)
case "$board" in
c2600)

View File

@@ -5,12 +5,11 @@
#
. /lib/functions/uci-defaults.sh
. /lib/ipq806x.sh
. /lib/functions/system.sh
board_config_update
board=$(ipq806x_board_name)
board=$(board_name)
case "$board" in
ap148 |\

View File

@@ -38,11 +38,10 @@ ath10kcal_patch_mac() {
[ -e /lib/firmware/$FIRMWARE ] && exit 0
. /lib/ipq806x.sh
. /lib/functions.sh
. /lib/functions/system.sh
board=$(ipq806x_board_name)
board=$(board_name)
case "$FIRMWARE" in

View File

@@ -6,10 +6,10 @@ PHYNBR=${DEVPATH##*/phy}
[ -n $PHYNBR ] || exit 0
. /lib/ipq806x.sh
. /lib/functions.sh
. /lib/functions/system.sh
board=$(ipq806x_board_name)
board=$(board_name)
case "$board" in
c2600)

View File

@@ -4,9 +4,8 @@
START=97
boot() {
. /lib/functions.sh
. /lib/ipq806x.sh
case $(ipq806x_board_name) in
case $(board_name) in
ea8500)
# make sure auto_recovery in uboot is always on
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"