summaryrefslogtreecommitdiffstats
path: root/tools/irecovery.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-27 13:09:40 +0200
committerGravatar Martin Szulecki2013-09-27 13:09:40 +0200
commita228aeedb3c4655fbb3deb46a03f960c9f1778db (patch)
tree6fd5022056c89bdc8d96147c57526418ad525749 /tools/irecovery.c
parent303c7f937c0fa161eabb13487336db30f8cbf493 (diff)
downloadlibirecovery-a228aeedb3c4655fbb3deb46a03f960c9f1778db.tar.gz
libirecovery-a228aeedb3c4655fbb3deb46a03f960c9f1778db.tar.bz2
irecovery: Fix formatting style for shell usage and improve usage summary text
Diffstat (limited to 'tools/irecovery.c')
-rw-r--r--tools/irecovery.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c
index 950379a..439920d 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -57,11 +57,11 @@ int postcommand_cb(irecv_client_t client, const irecv_event_t* event);
static void shell_usage() {
printf("Usage:\n");
- printf("\t/upload <file>\tSend file to client.\n");
- printf("\t/exploit [file]\tSend usb exploit with optional payload\n");
- printf("\t/deviceinfo\tShow device information (ECID, IMEI, etc.)\n");
- printf("\t/help\t\tShow this help.\n");
- printf("\t/exit\t\tExit interactive shell.\n");
+ printf(" /upload FILE\t\tsend FILE to device\n");
+ printf(" /exploit [FILE]\trun limera1in exploit and send optional payload from FILE\n");
+ printf(" /deviceinfo\t\tprint device information (ECID, IMEI, etc.)\n");
+ printf(" /help\t\t\tshow this help\n");
+ printf(" /exit\t\t\texit interactive shell\n");
}
static const char* mode_to_str(int mode) {
@@ -177,7 +177,6 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne
buffer_read_from_filename(filename, &buffer, &buffer_length);
if (buffer) {
buffer[buffer_length] = '\0';
-
irecv_execute_script(client, buffer);
free(buffer);
} else {
@@ -324,7 +323,7 @@ static void print_usage(int argc, char **argv) {
char *name = NULL;
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
- printf("Interact with a iBSS/iBoot iOS device in DFU or recovery mode.\n\n");
+ printf("Interact with an iOS device in DFU or recovery mode.\n\n");
printf("options:\n");
printf(" -i ECID\tconnect to specific device by its hexadecimal ECID\n");
printf(" -c CMD\trun CMD on device\n");