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 TRY_BASH=1 | 6 TRY_BASH=1 |
7 if echo "$@" | grep -q -- "--dash"; then | 7 if echo "$@" | grep -q -- "--dash"; then |
8 TRY_BASH=0 | 8 TRY_BASH=0 |
9 fi | 9 fi |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 ff_debug [<tag_expr>] [--help] [--list_valid_tags] [--reset] | 48 ff_debug [<tag_expr>] [--help] [--list_valid_tags] [--reset] |
49 Add and remove flimflam debugging tags. | 49 Add and remove flimflam debugging tags. |
50 | 50 |
51 help | 51 help |
52 Display this help. | 52 Display this help. |
53 | 53 |
54 modem <command> [args...] | 54 modem <command> [args...] |
55 Interact with the 3G modem. Run "modem help" for detailed help. | 55 Interact with the 3G modem. Run "modem help" for detailed help. |
56 | 56 |
| 57 modem_set_carrier carrier-name |
| 58 Configures the modem for the specified carrier. |
| 59 |
57 network_logging <wifi | cellular | ethernet> | 60 network_logging <wifi | cellular | ethernet> |
58 A function that enables a predefined set of tags useful for | 61 A function that enables a predefined set of tags useful for |
59 debugging the specified device. | 62 debugging the specified device. |
60 | 63 |
61 network_diag | 64 network_diag |
62 A function that performs a suite of network diagnostics. Saves a copy | 65 A function that performs a suite of network diagnostics. Saves a copy |
63 of the output to your download directory. | 66 of the output to your download directory. |
64 | 67 |
65 ping [-c count] [-i interval] [-n] [-s packet-size] [-W wait-time] <destination
> | 68 ping [-c count] [-i interval] [-n] [-s packet-size] [-W wait-time] <destination
> |
66 Send ICMP ECHO_REQUEST packets to a network host. If <destination> is "gw" | 69 Send ICMP ECHO_REQUEST packets to a network host. If <destination> is "gw" |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 cmd_top() { | 406 cmd_top() { |
404 # -s is "secure" mode, which disables kill, renice, and change display/sleep | 407 # -s is "secure" mode, which disables kill, renice, and change display/sleep |
405 # interval. | 408 # interval. |
406 top -s | 409 top -s |
407 } | 410 } |
408 | 411 |
409 cmd_modem() { | 412 cmd_modem() { |
410 /usr/bin/modem "$@" | 413 /usr/bin/modem "$@" |
411 } | 414 } |
412 | 415 |
| 416 cmd_modem_set_carrier() { |
| 417 /usr/bin/modem_set_carrier "$@" |
| 418 } |
| 419 |
413 cmd_set_apn() { | 420 cmd_set_apn() { |
414 /usr/bin/set_apn "$@" | 421 /usr/bin/set_apn "$@" |
415 } | 422 } |
416 | 423 |
417 substr() { | 424 substr() { |
418 local str="$1" | 425 local str="$1" |
419 local start="$2" | 426 local start="$2" |
420 local end="$3" | 427 local end="$3" |
421 | 428 |
422 if [ "$IS_BASH" = "1" ]; then | 429 if [ "$IS_BASH" = "1" ]; then |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 done | 511 done |
505 } | 512 } |
506 | 513 |
507 INPUTRC="$(dirname "$0")/inputrc.crosh" | 514 INPUTRC="$(dirname "$0")/inputrc.crosh" |
508 HISTFILE="$HOME/.crosh_history" | 515 HISTFILE="$HOME/.crosh_history" |
509 shell_history -r $HISTFILE | 516 shell_history -r $HISTFILE |
510 | 517 |
511 repl | 518 repl |
512 | 519 |
513 shell_history -w $HISTFILE | 520 shell_history -w $HISTFILE |
OLD | NEW |