From 132ad70437e3d4ba01a59ed9e9cac1893ccd3faa Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Mon, 29 Jul 2024 14:13:01 +0100 Subject: [PATCH] rpi-eeprom-update: Don't display the cancel/revert message in flashrom mode It's not possible to cancel an update via flashrom because it's already happened. --- rpi-eeprom-update | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpi-eeprom-update b/rpi-eeprom-update index ecbcd7c..6b54757 100755 --- a/rpi-eeprom-update +++ b/rpi-eeprom-update @@ -286,7 +286,10 @@ applyRecoveryUpdate() echo "" echo "EEPROM updates pending. Please reboot to apply the update." - echo "To cancel a pending update run \"sudo rpi-eeprom-update -r\"." + + if [ "${RPI_EEPROM_USE_FLASHROM}" = 0 ]; then + echo "To cancel a pending update run \"sudo rpi-eeprom-update -r\"." + fi } applyUpdate() {