summaryrefslogtreecommitdiff
path: root/resources/scripts/blobs/download
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-04-01 03:36:41 +0100
committerLeah Rowe <leah@libreboot.org>2023-04-01 03:36:41 +0100
commitaf29f112ababf4fe3c872ae8050c6ff2aa1269b1 (patch)
tree6857aca561d0537d24c3f28e1a68b5e203c97f80 /resources/scripts/blobs/download
parent883967160c4cfec3387a7406f29438752e2ad9b2 (diff)
blobutil: rename variables to make more sense
for example, files being downloaded have nothing to do with the ME; they are merely compressed, and contain many files in addition to it
Diffstat (limited to 'resources/scripts/blobs/download')
-rwxr-xr-xresources/scripts/blobs/download18
1 files changed, 9 insertions, 9 deletions
diff --git a/resources/scripts/blobs/download b/resources/scripts/blobs/download
index 186755dc..5f6cc12d 100755
--- a/resources/scripts/blobs/download
+++ b/resources/scripts/blobs/download
@@ -38,7 +38,7 @@ Extract_me(){
return 0
fi
- if [ -z "${me_dl+x}" ]; then
+ if [ -z "${dl_url+x}" ]; then
printf 'no me download available for this board\n'
return 1
fi
@@ -58,9 +58,9 @@ Extract_me(){
rm -r blobs/app
fi
- curl ${me_dl} > blobs/me.exe || curl ${me_dl_bkup} > blobs/me.exe
+ curl ${dl_url} > blobs/me.exe || curl ${dl_url_bkup} > blobs/me.exe
- if [ "$(sha1sum blobs/me.exe | awk '{print $1}')" != "${me_hash}" ]; then
+ if [ "$(sha1sum blobs/me.exe | awk '{print $1}')" != "${dl_hash}" ]; then
printf 'checksum of downloaded me did not mactch\ncorrupted me downloaded or wrong me for board\n'
rm blobs/me.exe
return 1
@@ -125,17 +125,17 @@ Build_deps
while read -r line ; do
case ${line} in
- ME_hash*)
+ DL_hash*)
set ${line}
- me_hash=${2}
+ dl_hash=${2}
;;
- ME_dl*)
+ DL_url*)
set ${line}
- me_dl=${2}
+ dl_url=${2}
;;
- ME_bkup_dl*)
+ DL_url_bkup*)
set ${line}
- me_dl_bkup=${2}
+ dl_url_bkup=${2}
;;
esac
done << EOF