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

Unified Diff: pack_stub

Issue 6673036: Do nothing if we're debugging BIOS changes, unless forced (Closed) Base URL: ssh://git@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 873188111bf16902212bc6ac54e86e30a532d78e..d871188f80e3f22ae1a0df67b4d9bdd89a4af949 100644
--- a/pack_stub
+++ b/pack_stub
@@ -108,6 +108,9 @@ case "$1" in
TMP_DIR=""
exit 0
;;
+ --force)
+ force_flag=1
+ ;;
-h|"-?"|--help)
echo "Shellball -- self-extract and install"
echo ""
@@ -135,6 +138,12 @@ 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"
+ exit 0
+fi
+
# Prepare execution environment
make_temp
allow_temp_exec
« 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