mirror of
https://github.com/AuxXxilium/arc-dsm.git
synced 2024-11-23 23:50:52 +07:00
dsm: update script
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
cde5c7b822
commit
2774dc3272
16
update.sh
16
update.sh
@ -46,6 +46,15 @@ while IFS= read -r line; do
|
||||
echo "Error downloading"
|
||||
fi
|
||||
if [ -f "${PAT_PATH}" ]; then
|
||||
|
||||
mkdir -p "${DESTINATION}"
|
||||
mkdir -p "${DESTINATIONFILES}"
|
||||
|
||||
echo -n "Checking hash of pat: "
|
||||
HASH="`sha256sum ${PAT_PATH} | awk '{print$1}'`"
|
||||
echo "OK"
|
||||
echo "${HASH}" >"${DESTINATION}/pat_hash"
|
||||
|
||||
rm -rf "${UNTAR_PAT_PATH}"
|
||||
mkdir -p "${UNTAR_PAT_PATH}"
|
||||
echo -n "Disassembling ${PAT_FILE}: "
|
||||
@ -85,18 +94,15 @@ while IFS= read -r line; do
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p "${DESTINATION}"
|
||||
mkdir -p "${DESTINATIONFILES}"
|
||||
|
||||
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}"
|
||||
|
Loading…
Reference in New Issue
Block a user