Permalink
Browse files

Force two updates, since parameters changed

  • Loading branch information...
Hexxeh committed Oct 22, 2012
1 parent 8a70c1a commit c6a967824309611e9ffe62786e3d2e1aae83c7cd
Showing with 3 additions and 3 deletions.
  1. +3 −3 rpi-update
View
@@ -5,7 +5,7 @@ set -o errexit
REPO_URI="http://github.com/Hexxeh/rpi-firmware"
-UPDATE=${UPDATE:-1}
+UPDATE2=${UPDATE2:-1}
UPDATE_URI="https://github.com/Hexxeh/rpi-update/raw/master/rpi-update"
ROOT_PATH=${ROOT_PATH:-"/"}
@@ -38,7 +38,7 @@ function update_self() {
#!/bin/bash
if mv "${_tempFileName}" "$0"; then
rm -- "\$0"
- exec env UPDATE=0 /bin/bash "$0" "${FW_REV}"
+ exec env UPDATE2=0 /bin/bash "$0" "${FW_REV}"
else
echo "Failed!"
fi
@@ -155,7 +155,7 @@ if [[ ${EUID} -ne 0 ]]; then
exit 1
fi
-if [[ ${UPDATE} -ne 0 ]]; then
+if [[ ${UPDATE2} -ne 0 ]]; then
echo "Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS"
update_self
fi

0 comments on commit c6a9678

Please sign in to comment.