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