Merge pull request #33 from DeadWalkingDeath/patch-3

Update rpi-update
This commit is contained in:
Liam McLoughlin
2012-10-10 06:54:44 -07:00

View File

@@ -58,7 +58,7 @@ function update_self() {
#!/bin/bash #!/bin/bash
if mv "${_tempFileName}" "$0"; then if mv "${_tempFileName}" "$0"; then
rm -- "\$0" rm -- "\$0"
exec env UPDATE=0 /bin/bash "$0" "$FW_RAM" exec env UPDATE=0 /bin/bash "$0" "$FW_RAM" "$FW_REV"
else else
echo "Failed!" echo "Failed!"
fi fi
@@ -219,7 +219,7 @@ if [[ ${FW_RAM} -ne 240 ]] &&[[ ${FW_RAM} -ne 224 ]] && [[ ${FW_RAM} -ne 192 ]]
exit 1 exit 1
fi fi
echo "Using ARM/GPU memory split of ${FW_RAM}MB/${FW_GPU}MB" echo "Using ARM/GPU memory split of ${FW_RAM}MB/${FW_GPU}MB"
if [ "${FW_REV}" != "" ]; then if [[ ${FW_REV} != "" ]]; then
download_rev download_rev
do_update "updated to revision ${FW_REV}" do_update "updated to revision ${FW_REV}"
elif [[ -f "${FW_REPOLOCAL}/.git/config" ]]; then elif [[ -f "${FW_REPOLOCAL}/.git/config" ]]; then