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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 cmd_top() { | 405 cmd_top() { |
403 # -s is "secure" mode, which disables kill, renice, and change display/sleep | 406 # -s is "secure" mode, which disables kill, renice, and change display/sleep |
404 # interval. | 407 # interval. |
405 top -s | 408 top -s |
406 } | 409 } |
407 | 410 |
408 cmd_modem() { | 411 cmd_modem() { |
409 /usr/bin/modem "$@" | 412 /usr/bin/modem "$@" |
410 } | 413 } |
411 | 414 |
| 415 cmd_modem_set_carrier() { |
| 416 /usr/bin/modem_set_carrier "$@" |
| 417 } |
| 418 |
412 cmd_set_apn() { | 419 cmd_set_apn() { |
413 /usr/bin/set_apn "$@" | 420 /usr/bin/set_apn "$@" |
414 } | 421 } |
415 | 422 |
416 substr() { | 423 substr() { |
417 local str="$1" | 424 local str="$1" |
418 local start="$2" | 425 local start="$2" |
419 local end="$3" | 426 local end="$3" |
420 | 427 |
421 if [ "$IS_BASH" = "1" ]; then | 428 if [ "$IS_BASH" = "1" ]; then |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 done | 510 done |
504 } | 511 } |
505 | 512 |
506 INPUTRC="$(dirname "$0")/inputrc.crosh" | 513 INPUTRC="$(dirname "$0")/inputrc.crosh" |
507 HISTFILE="$HOME/.crosh_history" | 514 HISTFILE="$HOME/.crosh_history" |
508 shell_history -r $HISTFILE | 515 shell_history -r $HISTFILE |
509 | 516 |
510 repl | 517 repl |
511 | 518 |
512 shell_history -w $HISTFILE | 519 shell_history -w $HISTFILE |
OLD | NEW |