From: Daniel Golle Date: Mon, 21 Apr 2025 18:03:58 +0000 (+0100) Subject: mediatek: mt7622: validate uImage.FIT X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=7ea0f647b9f55a6c945499d9968ba9ef43e7a5f6;p=openwrt%2Fstaging%2Fxback.git mediatek: mt7622: validate uImage.FIT Validate the uImage.FIT instead of only checking the image magic. Signed-off-by: Daniel Golle --- diff --git a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh index 9019eb6900..841397d4ef 100755 --- a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh +++ b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh @@ -69,11 +69,8 @@ platform_check_image() { return $? ;; *) - [ "$magic" != "d00dfeed" ] && { - echo "Invalid image type." - return 1 - } - return 0 + fit_check_image "$1" + return $? ;; esac