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

Unified Diff: bin/crosh

Issue 6713073: crosh: fix dev mode detection (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/window_manager.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: bin/crosh
diff --git a/bin/crosh b/bin/crosh
index ec237c5711f887276d074de75248d9b4049cfdd1..1cc7315e0e12e3a7e37736cc9c048c3608af8d0e 100755
--- a/bin/crosh
+++ b/bin/crosh
@@ -114,10 +114,11 @@ if [ "$(echo "$@" | grep -- "--usb")" -o "$REMOVABLE" = "1" ]; then
fi
# TODO(rginda): Switch to the "real" dev mode file when we have one.
-/bin/cros_boot_mode -s -m developer
+/usr/bin/crossystem cros_debug?1
DEVMODE=$((!$?))
# Force dev behavior on dev images
-# TODO(wad) replace with a cros_boot_mode arg once supported.
+# TODO(wad,rspangler) replace with a crossystem arg once cros_debug checks this
+# too.
if [ -f "/root/.dev_mode" ]; then
DEVMODE=1
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