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

Issue 6713073: crosh: fix dev mode detection (Closed)

Created:
9 years, 9 months ago by Will Drewry
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Greg Spencer (Chromium), Daniel Erat, puneetster, Randall Spangler
Visibility:
Public.

Description

crosh: fix dev mode detection Migrate from cros_boot_mode to crossystem BUG=chrome-os-partner:2688 TEST=Ctrl+Alt+T in both dev and normal modes. shell only works in dev mode. Change-Id: I061885d9c6912fbe078e7e2d6b87733e8a5a50bc R=bleung@chromium.org,cmasone@chromium.org Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=b7848fc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M bin/crosh View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Will Drewry
9 years, 9 months ago (2011-03-21 16:10:36 UTC) #1
Chris Masone
9 years, 9 months ago (2011-03-21 16:20:51 UTC) #2
LGTM

On Mon, Mar 21, 2011 at 9:10 AM,  <wad@chromium.org> wrote:
> Reviewers: Benson Leung, Chris Masone,
>
> Description:
> crosh: fix dev mode detection
>
> Migrate from cros_boot_mode to crossystem
>
> BUG=chrome-os-partner:2688
> TEST=Ctrl+Alt+T in both dev and normal modes. shell only works in dev mode.
>
> Change-Id: I061885d9c6912fbe078e7e2d6b87733e8a5a50bc
>
> R=bleung@chromium.org,cmasone@chromium.org
>
>
> Please review this at http://codereview.chromium.org/6713073/
>
> SVN Base: ssh://git@gitrw.chromium.org:9222/window_manager.git@master
>
> Affected files:
>  M bin/crosh
>
>
> 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
>
>
>

Powered by Google App Engine
This is Rietveld 408576698