|
1 | 1 | #!/bin/bash |
2 | 2 | set -e |
3 | 3 |
|
4 | | -#echo "Downloading debian ISO image: debian-firmware-testing-amd64-netinst-2020-06-22.iso..." |
5 | | -#if [ ! -f /images/debian-firmware-testing-amd64-netinst-2020-06-22.iso ]; then |
6 | | -# wget http://vdo.dappnode.io/debian-firmware-testing-amd64-netinst-2020-06-22.iso \ |
7 | | -# -O /images/debian-firmware-testing-amd64-netinst-2020-06-22.iso |
8 | | -#fi |
9 | | -#echo "Done!" |
| 4 | +# Source = https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/amd64/iso-cd/ |
| 5 | +ISO_NAME=firmware-edu-11.0.0-amd64-netinst.iso |
| 6 | +ISO_PATH="/images/${ISO_NAME}" |
| 7 | +ISO_URL=https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current/amd64/iso-cd |
| 8 | +SHASUM="7621912ef67ff89d65dc078c94aaea9d652150ef62e1ed02781367bb9657d908 ${ISO_PATH}" |
10 | 9 |
|
11 | | -#ISO_NAME=firmware-testing-amd64-netinst.iso |
12 | | -#ISO_URL=https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/weekly-builds/amd64/iso-cd/ |
13 | | - |
14 | | -#ISO_NAME=firmware-bullseye-DI-alpha3-amd64-netinst.iso |
15 | | -#ISO_URL=https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/bullseye_di_alpha3+nonfree/amd64/iso-cd/ |
16 | | - |
17 | | -ISO_NAME=firmware-bullseye-DI-alpha3-amd64-netinst.iso |
18 | | -ISO_URL=https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/bullseye_di_alpha3+nonfree/amd64/iso-cd/ |
19 | | - |
20 | | -echo "Downloading debian ISO image: firmware-bullseye-DI-alpha2-amd64-netinst.iso..." |
21 | | -if [ ! -f /images/${ISO_NAME} ]; then |
| 10 | +echo "Downloading debian ISO image: ${ISO_NAME}..." |
| 11 | +if [ ! -f ${ISO_PATH} ]; then |
22 | 12 | wget ${ISO_URL}/${ISO_NAME} \ |
23 | | - -O /images/${ISO_NAME} |
| 13 | + -O ${ISO_PATH} |
24 | 14 | fi |
25 | 15 | echo "Done!" |
26 | 16 |
|
| 17 | +echo "Verifying download..." |
| 18 | +[[ "$(shasum -a 256 ${ISO_PATH})" != "$SHASUM" ]] && { echo "ERROR: wrong shasum"; exit 1; } |
| 19 | + |
27 | 20 | echo "Clean old files..." |
28 | 21 | rm -rf dappnode-isoº |
29 | 22 | rm -rf DappNode-debian-* |
|
0 commit comments