Skip to content

Commit

Permalink
Merge pull request #1699 from AuxXxilium/dev
Browse files Browse the repository at this point in the history
update: fix more
  • Loading branch information
AuxXxilium authored May 29, 2024
2 parents 1bfac4b + 75d064c commit 5edcbeb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions files/initrd/opt/arc/include/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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
}

0 comments on commit 5edcbeb

Please sign in to comment.