From e1c7f9ec1f9732a5331f63e489ef7ab769ca7e6f Mon Sep 17 00:00:00 2001 From: Liam McLoughlin Date: Tue, 29 May 2012 16:10:19 +0100 Subject: [PATCH] Fix problem where memory split specified on cmdline was ignored --- rpi-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpi-update b/rpi-update index 6ac76b5..b2764fb 100755 --- a/rpi-update +++ b/rpi-update @@ -18,6 +18,7 @@ GITCMD="git --git-dir=\"${FW_REPOLOCAL}/.git\" --work-tree=\"${FW_REPOLOCAL}\"" function detect_split() { if [[ -f "$FW_PATH/start.elf" && ${FW_RAM} -eq 0 ]]; then + echo "Autodetecting memory split" FW_RAM=224 for R in 128 192 224 do @@ -54,7 +55,7 @@ function update_self() { #!/bin/bash if mv "${_tempFileName}" "$0"; then rm -- "\$0" - exec env UPDATE=0 /bin/bash "$0" "$@" + exec env UPDATE=0 /bin/bash "$0" "$FW_RAM" else echo "Failed!" fi