123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #!/bin/bash
- [ "x${DEBUG+set}" = 'xset' ] && set -v
- set -u -e
- printf "Downloading MemTest86+\n"
- rm -Rf "memtest86plus/"
- 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\n"
- else
- rm -f "memtest86+-5.01.tar.gz"
- printf "Invalid checksum for memtest86plus\n"
- exit 1
- fi
- tar -xzf "memtest86+-5.01.tar.gz"
- rm -f "memtest86+-5.01.tar.gz"
- mv "memtest86+-5.01/" "memtest86plus/"
- (
- cd "memtest86plus/"
- for patch in ../resources/memtest86plus/patch/*; do
- patch < "${patch}"
- done
- )
- printf "\n\n"
|