diff options
author | Martin Szulecki | 2012-07-17 15:47:29 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 15:47:29 +0200 |
commit | 398cae2678af07f202edff40494e5c39d06ff5d9 (patch) | |
tree | 62d5f7416802c648f7eb44a9bade2214385c93bb | |
parent | 0162a9956e8bd083632af36980edbdf576fb7a5d (diff) | |
download | idevicerestore-398cae2678af07f202edff40494e5c39d06ff5d9.tar.gz idevicerestore-398cae2678af07f202edff40494e5c39d06ff5d9.tar.bz2 |
recovery: Actually print environment variables which are read
-rw-r--r-- | src/recovery.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/recovery.c b/src/recovery.c index 9f4f200..40aef27 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -166,9 +166,20 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build return -1; } - irecv_send_command(client->recovery->client, "getenv build-version"); - irecv_send_command(client->recovery->client, "getenv build-style"); - irecv_send_command(client->recovery->client, "getenv radio-error"); + info("Recovery Mode Environment:\n"); + char* value = NULL; + irecv_getenv(client->recovery->client, "build-version", &value); + info("iBoot build-version=%s\n", value); + irecv_getenv(client->recovery->client, "build-style", &value); + info("iBoot build-style=%s\n", value); + unsigned long radio_error = 0; + irecv_getenv(client->recovery->client, "radio-error", &value); + radio_error = strtoul(value, NULL, 0); + if (radio_error > 0) { + info("radio-error=%s\n", value); + irecv_getenv(client->recovery->client, "radio-error-string", &value); + info("radio-error-string=%s\n", value); + } /* send logo and show it */ if (recovery_send_applelogo(client, build_identity) < 0) { |