From 5c910a186789231ee6ef788b6dc44f90847b6556 Mon Sep 17 00:00:00 2001 From: DeadWalkingDeath Date: Wed, 10 Oct 2012 16:48:16 +0300 Subject: [PATCH] Update rpi-update Initial if statement was correct, reverted the changes of the last two pull request. The real problem was that the updateScript.sh didn't pass the argument FW_REV! --- rpi-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpi-update b/rpi-update index 38495b1..17d4736 100755 --- a/rpi-update +++ b/rpi-update @@ -58,7 +58,7 @@ function update_self() { #!/bin/bash if mv "${_tempFileName}" "$0"; then rm -- "\$0" - exec env UPDATE=0 /bin/bash "$0" "$FW_RAM" + exec env UPDATE=0 /bin/bash "$0" "$FW_RAM" "$FW_REV" else echo "Failed!" fi @@ -219,7 +219,7 @@ if [[ ${FW_RAM} -ne 240 ]] &&[[ ${FW_RAM} -ne 224 ]] && [[ ${FW_RAM} -ne 192 ]] exit 1 fi echo "Using ARM/GPU memory split of ${FW_RAM}MB/${FW_GPU}MB" -if [ "${FW_REV}" != "" ]; then +if [[ ${FW_REV} != "" ]]; then download_rev do_update "updated to revision ${FW_REV}" elif [[ -f "${FW_REPOLOCAL}/.git/config" ]]; then