Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: pack_stub

Issue 6691053: chromeos-firmware: provide usage help for --force (Closed) Base URL: ssh://gitrw.chromium.org:9222/firmware.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pack_stub
diff --git a/pack_stub b/pack_stub
index 88182eaca532b250ba18bd44e5114114a6ddb5cd..4b68b71a5c6bd8310adcd602b96a526a5c5a37e8 100644
--- a/pack_stub
+++ b/pack_stub
@@ -23,6 +23,8 @@ LEGACY_SCRIPT=./legacy_updater.sh
SHELLBALL_FWVERSION="REPLACE_FWVERSION"
SHELLBALL_ECVERSION="REPLACE_ECVERSION"
+IGNORE_TAG_FILE='/root/.leave_firmware_alone'
+force_flag=""
# Prints a message and return an error code.
error_exit() {
@@ -155,6 +157,7 @@ case "$1" in
echo "options:"
echo " -h show usage help"
echo " -V show version of containing files"
+ echo " --force force execute and ignore $IGNORE_TAG_FILE"
echo " --sb_check check content integrity"
echo " --sb_extract extract content to temp folder"
echo ""
@@ -175,8 +178,8 @@ case "$1" in
esac
# Do nothing if we're debugging BIOS changes, unless forced
-if [ -e /root/.leave_firmware_alone ] && [ -z "${force_flag:-}" ]; then
- echo "WARNING: $0 is disabled"
+if [ -e "$IGNORE_TAG_FILE" ] && [ -z "${force_flag:-}" ]; then
+ echo "WARNING: $0 is disabled by $IGNORE_TAG_FILE"
exit 0
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698