From 57ea0f1c144722272c83af630950162473afdeba Mon Sep 17 00:00:00 2001 From: Michel Blanc Date: Thu, 11 Apr 2013 16:26:38 +0200 Subject: [PATCH] Updates .firmware_revision when revision set at CLI When revision was specified at the command line, $FW_PATH/.firmware_updating wasn't updated to reflect the change. Now $FW_PATH/.firmware_updating is always updated, so idempotency is achieved when using revision Id's at the command line. Fixes #84 --- rpi-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpi-update b/rpi-update index e589a0b..eb097b0 100755 --- a/rpi-update +++ b/rpi-update @@ -107,7 +107,9 @@ function finalise { if [[ ${FW_REV} == "" ]]; then echo " *** Storing current firmware revision" eval ${GITCMD} rev-parse master > "${FW_PATH}/.firmware_revision" - fi + else + echo ${FW_REV} > "${FW_PATH}/.firmware_revision" + fi echo " *** Syncing changes to disk" sync }