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

Side by Side Diff: crosh-workarounds

Issue 6597082: Remove obsolete channel_change and mkcrosusb commands. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/workarounds.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « channel_change ('k') | mkcrosusb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/dash 1 #!/bin/dash
2 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. 2 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Crosh commands to create and install USB stick with preferred build. 6 # Crosh commands to create and install USB stick with preferred build.
7 7
8 if [ "$(basename $0)" = "crosh-workarounds" ]; then 8 if [ "$(basename $0)" = "crosh-workarounds" ]; then
9 exec "$(dirname $0)/crosh" --workarounds 9 exec "$(dirname $0)/crosh" --workarounds
10 fi 10 fi
11 11
12 HELP="$HELP"'
13 mkcrosusb [-dev|-beta|-rcdev|-rcbeta]
14 Creates and installs USB stick with preferred build.
15 '
16 cmd_mkcrosusb() {
17 local mkcrosusb="/usr/bin/mkcrosusb"
18 if [ ! -f $mkcrosusb ]; then
19 echo "Missing $mkcrosusb" >&2
20 else
21 case "$1" in
22 -dev|-beta|-rcdev|-rcbeta|'')
23 $mkcrosusb $1
24 ;;
25 *)
26 echo "Usage: mkcrosusb [-dev|-beta|-rcdev|-rcbeta]" >&2
27 esac
28 fi
29 }
30
31 HELP="$HELP"'
32 channel_change [--dev|--beta]
33 Changes the channel from dev to beta and vice versa.
34 '
35 cmd_channel_change() {
36 local channel_change="/usr/bin/channel_change"
37 if [ ! -f $channel_change ]; then
38 echo "Missing $channel_change" >&2
39 else
40 case "$1" in
41 --dev|--beta)
42 $channel_change $1
43 ;;
44 *)
45 echo "Usage: channel_change [--dev|--beta]" >&2
46 esac
47 fi
48 }
49
50 # Allow users to set the autoproxy used by Chrome. 12 # Allow users to set the autoproxy used by Chrome.
51 # TODO: This option should be removed once proxy settings are available in the 13 # TODO: This option should be removed once proxy settings are available in the
52 # UI. The value set in the default_proxy file is passed to chrome as an 14 # UI. The value set in the default_proxy file is passed to chrome as an
53 # environment variable by /sbin/session_manager_setup.sh 15 # environment variable by /sbin/session_manager_setup.sh
54 HELP="$HELP"' 16 HELP="$HELP"'
55 autoproxy [get|clear|set <proxy-value>] 17 autoproxy [get|clear|set <proxy-value>]
56 Get, clear, or set the auto proxy setting. 18 Get, clear, or set the auto proxy setting.
57 ' 19 '
58 cmd_autoproxy() { 20 cmd_autoproxy() {
59 local command="$1" 21 local command="$1"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 shift 108 shift
147 done 109 done
148 110
149 if [ -n "$1" ]; then 111 if [ -n "$1" ]; then
150 options="$options BgscanMethod=$1" 112 options="$options BgscanMethod=$1"
151 fi 113 fi
152 114
153 /usr/local/lib/flimflam/test/set-bgscan $options 115 /usr/local/lib/flimflam/test/set-bgscan $options
154 # NB: parameters do not take effect until next association 116 # NB: parameters do not take effect until next association
155 } 117 }
OLDNEW
« no previous file with comments | « channel_change ('k') | mkcrosusb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698