OLD | NEW |
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 # Extra crosh commands |
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 # Allow users to set the autoproxy used by Chrome. | 12 # Allow users to set the autoproxy used by Chrome. |
13 # 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 |
14 # 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 |
15 # environment variable by /sbin/session_manager_setup.sh | 15 # environment variable by /sbin/session_manager_setup.sh |
16 HELP="$HELP"' | 16 HELP="$HELP"' |
(...skipping 30 matching lines...) Expand all Loading... |
47 mkdir -p $(dirname "$proxy_file") | 47 mkdir -p $(dirname "$proxy_file") |
48 echo "$proxy" > "$proxy_file" | 48 echo "$proxy" > "$proxy_file" |
49 echo "Autoproxy updated." \ | 49 echo "Autoproxy updated." \ |
50 "Please restart Chrome for the change to take effect." | 50 "Please restart Chrome for the change to take effect." |
51 else | 51 else |
52 echo "Unknown command." | 52 echo "Unknown command." |
53 echo $usage | 53 echo $usage |
54 fi | 54 fi |
55 } | 55 } |
56 | 56 |
57 if [ -x /usr/bin/modem_set_carrier ]; then | |
58 HELP="$HELP"' | |
59 modem_set_carrier carrier-name | |
60 Configures the modem for the specified carrier. | |
61 ' | |
62 cmd_modem_set_carrier() { | |
63 /usr/bin/modem_set_carrier "$@" | |
64 } | |
65 fi | |
66 | |
67 HELP="$HELP"' | 57 HELP="$HELP"' |
68 cryptohome [--status] | 58 cryptohome [--status] |
69 Get human-readable status information from cryptohomed | 59 Get human-readable status information from cryptohomed |
70 ' | 60 ' |
71 cmd_cryptohome() { | 61 cmd_cryptohome() { |
72 local cryptohome="/usr/sbin/cryptohome" | 62 local cryptohome="/usr/sbin/cryptohome" |
73 if [ ! -f $cryptohome ]; then | 63 if [ ! -f $cryptohome ]; then |
74 echo "Missing $cryptohome" >&2 | 64 echo "Missing $cryptohome" >&2 |
75 else | 65 else |
76 case x"$1" in | 66 case x"$1" in |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 shift | 98 shift |
109 done | 99 done |
110 | 100 |
111 if [ -n "$1" ]; then | 101 if [ -n "$1" ]; then |
112 options="$options BgscanMethod=$1" | 102 options="$options BgscanMethod=$1" |
113 fi | 103 fi |
114 | 104 |
115 /usr/local/lib/flimflam/test/set-bgscan $options | 105 /usr/local/lib/flimflam/test/set-bgscan $options |
116 # NB: parameters do not take effect until next association | 106 # NB: parameters do not take effect until next association |
117 } | 107 } |
OLD | NEW |