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

Unified Diff: clobber-state

Issue 6623030: Call firmware wipe script during factory wipe if it exists (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: drop use of variables that are not available in the context of this script Created 9 years, 10 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: clobber-state
diff --git a/clobber-state b/clobber-state
index 8015a227792b307b9d5d839e3dc8fc5b86bec190..b6252247b0f2ead8dfdbce0db6b451c31c1b4c62 100755
--- a/clobber-state
+++ b/clobber-state
@@ -101,6 +101,11 @@ echo 3 > /proc/sys/vm/drop_caches
# Do any board specific wiping here.
# board_factory_wipe.sh will be installed by the board overlay if necessary.
if [ "$FACTORY_WIPE" = "factory" ]; then
+ FIRMWARE_WIPE='/usr/sbin/firmware-factory-wipe'
+ if [ -x "${FIRMWARE_WIPE}" ]; then
+ ${FIRMWARE_WIPE}
+ fi
+
BOARD_WIPE=/usr/sbin/board_factory_wipe.sh
if [ -x "${BOARD_WIPE}" ]; then
${BOARD_WIPE}
« 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