mirror of
https://github.com/AuxXxilium/arc-dsm.git
synced 2024-11-23 23:30:51 +07:00
dsm: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
228921404d
commit
5672ec874c
16
update.sh
16
update.sh
@ -16,7 +16,7 @@ function getDSM() {
|
||||
UNTAR_PAT_PATH="${CACHE_PATH}/${MODEL}/${VERSION}"
|
||||
DESTINATION="${DSMPATH}/${MODEL}/${VERSION}"
|
||||
DESTINATIONFILES="${FILESPATH}/${MODEL}/${VERSION}"
|
||||
SYNOINFO="${DESTINATION}/synoinfo.yml"
|
||||
SYNOINFO="${DESTINATION}synoinfo.yml"
|
||||
|
||||
PAT_MODEL="$(echo "${MODEL}" | sed -e 's/\./%2E/g' -e 's/+/%2B/g')"
|
||||
PAT_MAJOR="$(echo "${VERSION}" | cut -b 1)"
|
||||
@ -30,13 +30,13 @@ function getDSM() {
|
||||
echo "${PAT_URL} ${HASH}"
|
||||
PAT_URL=${PAT_URL%%\?*}
|
||||
|
||||
OLDURL="$(cat "${DESTINATION}/pat_url")"
|
||||
OLDHASH="$(cat "${DESTINATION}/pat_hash")"
|
||||
OLDURL="$(cat "${DESTINATION}pat_url")"
|
||||
OLDHASH="$(cat "${DESTINATION}pat_hash")"
|
||||
|
||||
if [ "${HASH}" != "${OLDHASH}" ] || [ "${PAT_URL}" != "${OLDURL}" ]; then
|
||||
|
||||
echo "${HASH}" >"${DESTINATION}/pat_hash"
|
||||
echo "${PAT_URL}" >"${DESTINATION}/pat_url"
|
||||
echo "${HASH}" >"${DESTINATION}pat_hash"
|
||||
echo "${PAT_URL}" >"${DESTINATION}pat_url"
|
||||
|
||||
rm -rf "${UNTAR_PAT_PATH}"
|
||||
mkdir -p "${UNTAR_PAT_PATH}"
|
||||
@ -80,12 +80,12 @@ function getDSM() {
|
||||
echo -n "Checking hash of zImage: "
|
||||
HASH=$(sha256sum ${UNTAR_PAT_PATH}/zImage | awk '{print$1}')
|
||||
echo "OK"
|
||||
echo "${HASH}" >"${DESTINATION}/zImage_hash"
|
||||
echo "${HASH}" >"${DESTINATION}zImage_hash"
|
||||
|
||||
echo -n "Checking hash of ramdisk: "
|
||||
HASH=$(sha256sum ${UNTAR_PAT_PATH}/rd.gz | awk '{print$1}')
|
||||
echo "OK"
|
||||
echo "${HASH}" >"${DESTINATION}/ramdisk_hash"
|
||||
echo "${HASH}" >"${DESTINATION}ramdisk_hash"
|
||||
|
||||
echo -n "Copying files: "
|
||||
cp "${UNTAR_PAT_PATH}/grub_cksum.syno" "${DESTINATION}"
|
||||
@ -111,7 +111,7 @@ HOME=$(pwd)
|
||||
CONFIGS="./configs"
|
||||
rm -f "${CONFIGS}"
|
||||
mkdir -p "${CONFIGS}"
|
||||
git clone https://github.com/AuxXxilium/arc-configs -b main "${CONFIGS}"
|
||||
git clone https://github.com/AuxXxilium/arc-configs -b dev "${CONFIGS}"
|
||||
while read MODEL; do
|
||||
MODEL="$(basename ${MODEL})"
|
||||
MODEL="${MODEL::-4}"
|
||||
|
Loading…
Reference in New Issue
Block a user