diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-07-12 11:35:14 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-07-12 11:41:36 (EDT) |
commit | 5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5 (patch) | |
tree | 67c6c78c548f35d44a77f444477f931f0e32abd8 /resources/scripts/helpers/download/coreboot | |
parent | 6fb9ffefdd9cc64c08cf7627efd8a87a894b0419 (diff) | |
download | libreboot-5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5.zip libreboot-5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5.tar.gz libreboot-5b44cb159bbc2b46bcc9cd6b8612f7e05d4f3ae5.tar.bz2 |
download/coreboot: verify the checksums of downloaded files
Diffstat (limited to 'resources/scripts/helpers/download/coreboot')
-rwxr-xr-x | resources/scripts/helpers/download/coreboot | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/scripts/helpers/download/coreboot b/resources/scripts/helpers/download/coreboot index 8341f74..7a0b2ae 100755 --- a/resources/scripts/helpers/download/coreboot +++ b/resources/scripts/helpers/download/coreboot @@ -46,6 +46,13 @@ cd "coreboot/" # reset to previously tested revision git reset --hard cd5cdd3ba42371cc97b1464fd7b98de5bef05a6a +# Verify checksums of the downloaded files +# ------------------------------------------------------------------------------ + +sha512sum -c "../resources/scripts/helpers/sha512sums/coreboot" || (cd "../" && rm -Rf "coreboot/" && printf "Invalid checksums for coreboot\n" && exit 1) + +printf "Valid checksums for coreboot\n" + # Get patches from review.coreboot.org # ------------------------------------------------------------------------------ |