Adding MD5 hash to make the rss update files

This commit is contained in:
Fabio Belavenuto
2022-08-17 16:41:21 -03:00
parent 9c680d59f0
commit 2cde38923c
16 changed files with 221 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ for MODEL in DS918+ DS920+ DS1520+ DS1621+ DS2422+ DS3615xs DS3617xs DS3622xs+ D
echo "ok, download it."
curl --progress-bar -C - -L "${URL}" -o ${FILEPATH}
fi
echo "Calculating md5:"
PAT_MD5=`md5sum ${FILEPATH} | awk '{print$1}'`
echo "Calculating sha256:"
sudo rm -rf /tmp/extracted
docker run --rm -it -v /tmp:/data syno-extractor /data/${FILENAME} /data/extracted
@@ -62,6 +64,7 @@ for MODEL in DS918+ DS920+ DS1520+ DS1621+ DS2422+ DS3615xs DS3617xs DS3622xs+ D
hash: "${PAT_CS}"
ramdisk-hash: "${RD_CS}"
zimage-hash: "${ZIMAGE_CS}"
md5-hash: "${PAT_MD5}"
patch:
- "ramdisk-common-disable-root-pwd.patch"
- "ramdisk-common-init-script.patch"