aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-12-13 18:19:05 +0100
committerRafał Miłecki <rafal@milecki.pl>2021-12-13 18:21:25 +0100
commit5a8faa407a2f116b82f79f5134a703909d322a1d (patch)
tree7cb5291c1ece5155ef383f7b9b6ddd4b7a037289 /target
parent052619a71bab8251634351aa35e228c8b2597a5a (diff)
downloadupstream-5a8faa407a2f116b82f79f5134a703909d322a1d.tar.gz
upstream-5a8faa407a2f116b82f79f5134a703909d322a1d.tar.bz2
upstream-5a8faa407a2f116b82f79f5134a703909d322a1d.zip
bcm53xx: sysupgrade: fix support for Luxul's legacy firmware format
Fixes: c808c55b398c ("bcm53xx: sysupgrade: refactor handling different firmware formats") Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit 3bcf3e8143160e447c22c0ac3fa66fbcf6a59eef)
Diffstat (limited to 'target')
-rw-r--r--target/linux/bcm53xx/base-files/lib/upgrade/platform.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
index 512dad1891..c92dcd1e4e 100644
--- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
@@ -143,7 +143,9 @@ platform_other_check_image() {
echo "Found $BCM53XX_FW_FORMAT firmware for device $BCM53XX_FW_BOARD_ID"
local expected_image="$(platform_expected_image)"
- [ -n "$expected_image" -a -n "$BCM53XX_FW_BOARD_ID" -a "$expected_image" != "$BCM53XX_FW_FORMAT $BCM53XX_FW_BOARD_ID" ] && {
+ local tmp_format=$BCM53XX_FW_FORMAT
+ [ "$tmp_format" = "lxlold" ] && tmp_format="lxl"
+ [ -n "$expected_image" -a -n "$BCM53XX_FW_BOARD_ID" -a "$expected_image" != "$tmp_format $BCM53XX_FW_BOARD_ID" ] && {
echo "Firmware doesn't match device ($expected_image)"
error=1
}