From 1dd909e2c8c2bae7adb3eff3aed73c3a6062e8c8 Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Fri, 21 Mar 2025 11:41:42 +0000 Subject: [PATCH] Skip invalid hash when using custom FW_REPOLOCAL There is a mode where you can run rpi-update without a network, if you have a local copy of the repo files. e.g. SKIP_DOWNLOAD=1 SKIP_REPODELETE=1 FW_REPOLOCAL=/home/dom/.rpi-firmware rpi-update That is currently not usable because of the git hash check. So fix it. --- rpi-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpi-update b/rpi-update index 422d200..78d91cb 100755 --- a/rpi-update +++ b/rpi-update @@ -785,7 +785,7 @@ if [[ "${FW_REV}" == "" ]]; then SKIP_VCLIBS=1 fi -if [[ "${FW_REV}" == "" ]]; then +if [[ "${FW_REV}" == "" ]] && [[ "$FW_REPOLOCAL" == "${WORK_PATH}/.rpi-firmware" ]]; then echo " *** Invalid hash given" exit 1 fi