update: fix more

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-05-29 20:57:24 +02:00
parent 5cde4b31e8
commit 75d064cc3f

View File

@@ -279,7 +279,7 @@ function updateLKMs() {
fi
# Download update file
echo "Downloading ${TAG}"
STATUS="$(curl --insecure -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-lkm/releases/download/${TAG}/rp-lkms-${TAG}.zip" -o "${TMP_PATH}/rp-lkms.zip")"
STATUS="$(curl --insecure -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-lkm/releases/download/${TAG}/rp-lkms.zip" -o "${TMP_PATH}/rp-lkms.zip")"
rm -rf "${LKM_PATH}"
mkdir -p "${LKM_PATH}"
echo "Installing new LKMs..."
@@ -303,6 +303,10 @@ function updateLKMs() {
function updateFailed() {
dialog --backtitle "$(backtitle)" --title "Update Failed" \
--infobox "Update failed!" 0 0
sleep 10
exec reboot
sleep 5
local CUSTOM="$(readConfigKey "arc.custom" "${USER_CONFIG_FILE}")"
if [ "${CUSTOM}" = "true" ]; then
exec reboot
fi
exit 1
}