mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
add --device-info
This commit is contained in:
4 files changed
+67
-8
No files matched your search
+7
-2
@@ -41,6 +41,7 @@ static struct option longopts[] = {
|
||||
{"reboot-device", no_argument, NULL, 'R'},
|
||||
{"exit-recovery", no_argument, NULL, 'n'},
|
||||
{"enter-recovery", no_argument, NULL, 'E'},
|
||||
{"device-info", no_argument, NULL, 'I'},
|
||||
#ifdef DEV_BUILD
|
||||
{"test1", no_argument, NULL, '1'},
|
||||
{"test2", no_argument, NULL, '2'},
|
||||
@@ -80,6 +81,7 @@ static int usage(int e, char* prog_name)
|
||||
"\t-l, --rootless\t\t\t\tBoots rootless. This is the default\n"
|
||||
"\t-L, --jbinit-log-to-file\t\tMake jbinit log to /cores/jbinit.log (can be read from sandbox while jailbroken)\n"
|
||||
"\t-n, --exit-recovery\t\t\tExit recovery mode\n"
|
||||
"\t-I, --device-info\t\t\tPrint info about the connected device\n"
|
||||
"\t-o, --override-overlay <file>\t\tOverride overlay\n"
|
||||
"\t-O, --disable-ohio\t\t\tDisable Ohio\n"
|
||||
"\t-p, --pongo-shell\t\t\tBoots to PongoOS shell\n"
|
||||
@@ -106,9 +108,9 @@ int optparse(int argc, char* argv[]) {
|
||||
int index;
|
||||
while ((opt = getopt_long(argc, argv,
|
||||
#ifdef DEV_BUILD
|
||||
"12BcDEhpvVldsOLftRnPe:o:r:K:k:i:",
|
||||
"12BcDEhpvVldsOLftRnPIe:o:r:K:k:i:",
|
||||
#else
|
||||
"BcDEhpvVldsOLfRnPe:o:r:K:k:i:",
|
||||
"BcDEhpvVldsOLfRnPIe:o:r:K:k:i:",
|
||||
#endif
|
||||
longopts, NULL)) != -1)
|
||||
{
|
||||
@@ -222,6 +224,9 @@ int optparse(int argc, char* argv[]) {
|
||||
case 'O':
|
||||
host_flags |= host_option_no_ohio;
|
||||
break;
|
||||
case 'I':
|
||||
host_flags |= host_option_device_info;
|
||||
break;
|
||||
#ifdef DEV_BUILD
|
||||
case 't':
|
||||
host_flags |= host_option_tui;
|
||||
|
||||
Reference in new issue
Block a user