parent
6d23b3fe55
commit
240eb6da23
|
@ -32,37 +32,11 @@ printf "Downloading MemTest86+\n"
|
|||
|
||||
rm -Rf "memtest86plus/"
|
||||
|
||||
# Get latest memtest86+:
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# download it using wget
|
||||
wget http://memtest.org/download/5.31b/memtest86+-5.31b.tar.gz
|
||||
|
||||
if [ "$(sha512sum memtest86+-5.31b.tar.gz | cut -c1-128)" = "ad5891fd0c430ce7a5d0cde2d10dee20b66ad8060d47c3e70e038461d9cde3a78dfc13442b5b09da7c662741945a670353c72dbc08fd5ee8bae82256001a9541" ]; then
|
||||
printf "Valid checksum for memtest86plus\n"
|
||||
else
|
||||
rm -f "memtest86+-5.31b.tar.gz"
|
||||
printf "Invalid checksum for memtest86plus, or memtest86plus not downloaded\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# extract it
|
||||
tar -xzf "memtest86+-5.31b.tar.gz"
|
||||
|
||||
# delete the tar file (no longer needed)
|
||||
rm -f "memtest86+-5.31b.tar.gz"
|
||||
|
||||
# make direcotory name consistent
|
||||
mv "memtest86+-5.31b/" "memtest86plus/"
|
||||
|
||||
# Apply necessary patches
|
||||
# ------------------------------------------------------------------------------
|
||||
git clone https://review.coreboot.org/memtest86plus.git
|
||||
|
||||
(
|
||||
cd "memtest86plus/"
|
||||
for patch in ../resources/memtest86plus/patch/*; do
|
||||
patch < "${patch}"
|
||||
done
|
||||
git reset --hard dd5b4ff2660a11041a05713f65ab65be19335153
|
||||
)
|
||||
|
||||
printf "\n\n"
|
||||
|
|
Loading…
Reference in New Issue