From 8353e0be52e9547f5b5f9760eb0d3c94755f4afb Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 12 Jul 2015 15:29:16 +0100 Subject: download/memtest86plus: verify checksum when downloading --- docs/maintain/index.html | 5 +++++ resources/scripts/helpers/download/memtest86plus | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/docs/maintain/index.html b/docs/maintain/index.html index 5fa0cdb6..feff7b3f 100644 --- a/docs/maintain/index.html +++ b/docs/maintain/index.html @@ -557,6 +557,11 @@ the build script is resources/scripts/helpers/build/module/memtest86plus.

+

+ In the download script for memtest86plus, make sure to update the checksum that it matches + for the downloaded source tarball. +

+

Back to top of page.

diff --git a/resources/scripts/helpers/download/memtest86plus b/resources/scripts/helpers/download/memtest86plus index c4781221..058119c7 100755 --- a/resources/scripts/helpers/download/memtest86plus +++ b/resources/scripts/helpers/download/memtest86plus @@ -40,6 +40,13 @@ rm -Rf "memtest86+-5.01/" # download it using wget wget http://www.memtest.org/download/5.01/memtest86+-5.01.tar.gz +if [ "$(sha512sum memtest86+-5.01.tar.gz | cut -c1-128)" = "d872db35ef733ec8f49094251f2bf6b98cc80eb06d04044be3aecf28d534f24ba293a08b9979b112dbd07cf27368148939a33a32c7010fc9581a3a5b150c94d7" ]; then + printf "Valid checksum for memtest86plus" +else + printf "Invalid checksum for memtest86plus\n" + exit 1 +fi + # extract it tar -xzf "memtest86+-5.01.tar.gz" -- cgit v1.2.3-70-g09d2