mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
Add -F option
This commit is contained in:
1 parent
f4facd4933
commit
a696c2b50f
3 files changed
+12
-5
No files matched your search
+7
-2
@@ -19,6 +19,7 @@ static struct option longopts[] = {
|
||||
{"dfuhelper", no_argument, NULL, 'D'},
|
||||
{"help", no_argument, NULL, 'h'},
|
||||
{"pongo-shell", no_argument, NULL, 'p'},
|
||||
{"pongo-full", no_argument, NULL, 'F'},
|
||||
{"start-from-pongo", no_argument, NULL, 'P'},
|
||||
{"debug-logging", no_argument, NULL, 'v'},
|
||||
{"verbose-boot", no_argument, NULL, 'V'},
|
||||
@@ -60,6 +61,7 @@ static int usage(int e, char* prog_name)
|
||||
"\t-h, --help\t\t\t\tShow this help\n"
|
||||
"\t-p, --pongo-shell\t\t\tBoots to PongoOS shell\n"
|
||||
"\t-P, --start-from-pongo\t\t\tStart with a PongoOS USB Device attached\n"
|
||||
"\t-F, --pongo-full\t\t\tBoots to a PongoOS shell with default images already uploaded\n"
|
||||
"\t-v, --debug-logging\t\t\tEnable debug logging\n"
|
||||
"\t\tThis option can be repeated for extra verbosity.\n"
|
||||
"\t-V, --verbose-boot\t\t\tVerbose boot\n"
|
||||
@@ -87,9 +89,9 @@ int optparse(int argc, char* argv[]) {
|
||||
int index;
|
||||
while ((opt = getopt_long(argc, argv,
|
||||
#ifdef DEV_BUILD
|
||||
"cCDhpvVldsOLtfe:o:r:K:k:",
|
||||
"cCDhpvVldsOLtfFe:o:r:K:k:",
|
||||
#else
|
||||
"cCDhpvVldsOLfe:o:r:K:k:",
|
||||
"cCDhpvVldsOLfFe:o:r:K:k:",
|
||||
#endif
|
||||
longopts, NULL)) != -1)
|
||||
{
|
||||
@@ -136,6 +138,9 @@ int optparse(int argc, char* argv[]) {
|
||||
snprintf(dtpatch_cmd, 0x20, "dtpatch %s", optarg);
|
||||
enable_rootful = 1;
|
||||
break;
|
||||
case 'F':
|
||||
pongo_full = 1;
|
||||
break;
|
||||
case 'l':
|
||||
enable_rootful = 0;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user