Commit 3f6234cf authored by Youness Alaoui's avatar Youness Alaoui
Browse files

Fix non-downloadable ME URL.

It doesn't auto download it anymore, but at least, instead of an obscure
error, it tells the user what to do if it can't auto detect the direct
link URL.
parent df1c1b41
......@@ -30,7 +30,7 @@ SKL_FSP_SPLIT_SHA="f654f6363de68ad78b1baf8b8e573b53715c3bc76f7f3c23562641e49a703
# Link found on : http://www.win-raid.com/t832f39-Intel-Engine-Firmware-Repositories.html
# Update link if it changes and becomes invalid.
SKL_ME_RAR_URL="http://www.mediafire.com/file/1angqt361xdf8k0/"
SKL_ME_RAR_URL="https://mega.nz/#!fA03xADA!5uqZiKwNZIP1J27xHzIKVQPQaNfqxdtzKjPRxxwZMc8"
SKL_ME_FILENAME="11.0.18.1002_CON_LP_C0_NPDM_PRD_RGN.bin"
SKL_ME_FULL_FILENAME="Intel CSME 11.0 Firmware Repository Pack r50/$SKL_ME_FILENAME"
SKL_ME_RAR_SHA="11a9c199065c513a93c19269ffbb4bb094f8642a97686082e8cd2974673c599d"
......@@ -223,6 +223,13 @@ get_and_patch_me_11 () {
fi
if [ "$sha" != "$SKL_ME_RAR_SHA" ]; then
DIRECT_LINK=$(wget -O - "$SKL_ME_RAR_URL" 2>/dev/null | grep -o -e 'http://download.*.rar' | head -n 1)
if [ -z "$DIRECT_LINK" ]; then
echo ""
echo "Couldn't automatically determine the direct link URL to download the ME from."
echo "Please manually download the file from the URL '$SKL_ME_RAR_URL'"
echo "And place the file in '`pwd`/$rar_filename'"
die "Once done. Please run this script again."
fi
wget -O "$rar_filename" "$DIRECT_LINK"
sha=$(sha256sum "$rar_filename" | awk '{print $1}')
if [ "$sha" != "$SKL_ME_RAR_SHA" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment