@@ -64,6 +64,7 @@ void cmd_help(){
64
64
printf (" Options:\n\n " );
65
65
printf (" -t, --apticket PATH\t\t APTicket used for restoring\n " );
66
66
printf (" -u, --update\t\t\t Update instead of erase install (requires appropriate APTicket)\n " );
67
+ printf (" \t\t\t NOT recommended this parameter, if you update from jailbroken firmware\n " );
67
68
printf (" -w, --wait\t\t\t Keep rebooting until ApNonce matches APTicket (ApNonce collision, unreliable)\n " );
68
69
printf (" -d, --debug\t\t\t Verbose debug output (useful for error logs)\n " );
69
70
printf (" --latest-sep\t\t Use latest signed sep instead of manually specifying one (may cause bad restore)\n " );
@@ -72,7 +73,7 @@ void cmd_help(){
72
73
printf (" \t\t WARNING: only use this for device without a baseband (eg. iPod touch or some Wi-Fi only iPads)\n " );
73
74
printf (" --exit-recovery\t\t Exit recovery mode and quit\n " );
74
75
#ifdef HAVE_LIBIPATCHER
75
- printf (" --use-pwndfu\t\t use this for restoring devices with odysseus method. Device needs to be in kDFU mode already\n " );
76
+ printf (" --use-pwndfu\t\t use this for restoring devices with Odysseus method. Device needs to be in kDFU mode already\n " );
76
77
printf (" --just-boot=\" -v\"\t\t use this to tethered boot the device from kDFU mode. You can optionally set boot-args\n " );
77
78
#endif
78
79
printf (" \n To extract baseband/SEP automatically from IPSW:\n\n " );
@@ -131,7 +132,6 @@ int main(int argc, const char * argv[]) {
131
132
return -1 ;
132
133
}
133
134
134
-
135
135
while ((opt = getopt_long (argc, (char * const *)argv, " t:i:b:p:s:m:wud0123" , longopts, &optindex)) > 0 ) {
136
136
switch (opt) {
137
137
case ' t' : // long option: "apticket"; can be called as short option
@@ -192,8 +192,8 @@ int main(int argc, const char * argv[]) {
192
192
argv += optind ;
193
193
194
194
ipsw = argv[0 ];
195
- }else if (argc == optind && flags & FLAG_WAIT) {
196
- info (" User requested to only wait for APNonce to match, but not actually restoring\n " );
195
+ } else if (argc == optind && flags & FLAG_WAIT) {
196
+ info (" User requested to only wait for ApNonce to match, but not actually restoring\n " );
197
197
} else if (exitRecovery) {
198
198
info (" Exiting recovery mode\n " );
199
199
} else {
@@ -319,7 +319,6 @@ int main(int argc, const char * argv[]) {
319
319
}
320
320
cout << " Done: restoring " << (!res ? " succeeded" : " failed" )<<" ." <<endl;
321
321
322
-
323
322
error:
324
323
if (err) cout << " Failed with errorcode=" <<err << endl;
325
324
return err;
0 commit comments