diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-11-21 11:59:37 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-11-24 12:53:17 +0100 |
commit | 9fc0bcdd18688724494e3364ec986318372129a4 (patch) | |
tree | bcbcaab9641b9a48e2a2ed876981d25fe99739e3 /target/linux/mvebu/base-files | |
parent | d596c21ebd5a3e6ce933eff3e51989031e4b1d58 (diff) | |
download | upstream-9fc0bcdd18688724494e3364ec986318372129a4.tar.gz upstream-9fc0bcdd18688724494e3364ec986318372129a4.tar.bz2 upstream-9fc0bcdd18688724494e3364ec986318372129a4.zip |
mvebu: use image metadata for firmware validation
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mvebu/base-files')
-rwxr-xr-x | target/linux/mvebu/base-files/lib/upgrade/platform.sh | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/target/linux/mvebu/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/base-files/lib/upgrade/platform.sh index a8ad602cc7..77578e28d4 100755 --- a/target/linux/mvebu/base-files/lib/upgrade/platform.sh +++ b/target/linux/mvebu/base-files/lib/upgrade/platform.sh @@ -6,29 +6,10 @@ . /lib/mvebu.sh RAMFS_COPY_DATA=/lib/mvebu.sh +REQUIRE_IMAGE_METADATA=1 platform_check_image() { - local board=$(mvebu_board_name) - local magic_long="$(get_magic_long "$1")" - - [ "$#" -gt 1 ] && return 1 - - case "$board" in - armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba) - [ "$magic_long" != "27051956" -a "$magic_long" != "73797375" ] && { - echo "Invalid image type." - return 1 - } - return 0; - ;; - armada-388-clearfog) - platform_check_image_clearfog "$ARGV" - return $? - ;; - esac - - echo "Sysupgrade is not yet supported on $board." - return 1 + return 0 } platform_do_upgrade() { |