From 43a8f5114535f8bf415cd8b2f7591a536b91126f Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Tue, 17 Jan 2023 20:48:54 +0800 Subject: [PATCH] rename --fakefs to --rootfs because it can also be used on realfs --- src/dfuhelper.c | 1 + src/exec_checkra1n.c | 6 ++++-- src/main.c | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/dfuhelper.c b/src/dfuhelper.c index cd78ac6..6d5e48b 100644 --- a/src/dfuhelper.c +++ b/src/dfuhelper.c @@ -134,6 +134,7 @@ void* connected_recovery_mode(struct irecv_device_info* info) { void* connected_dfu_mode(struct irecv_device_info* info) { if (ecid_wait_for_dfu == info->ecid) { ecid_wait_for_dfu = 0; + puts(""); LOG(LOG_INFO, "Device entered DFU mode successfully"); } unsubscribe_cmd(); diff --git a/src/exec_checkra1n.c b/src/exec_checkra1n.c index 2175b6a..be68cf5 100644 --- a/src/exec_checkra1n.c +++ b/src/exec_checkra1n.c @@ -39,12 +39,14 @@ void exec_checkra1n() { LOG(LOG_FATAL, "Cannot chmod %s: %d (%s)", checkra1n_path, errno, strerror(errno)); unlink(checkra1n_path); } + char* args = "-pvE"; + if (verbose < 2) args = "-pE"; + pid_t pid; char* checkra1n_argv[] = { checkra1n_path, - "-pvE", + args, NULL }; - pid_t pid; ret = posix_spawn(&pid, checkra1n_path, NULL, NULL, checkra1n_argv, environ); if (ret) { LOG(LOG_FATAL, "Cannot posix spawn %s: %d (%s)", checkra1n_path, errno, strerror(errno)); diff --git a/src/main.c b/src/main.c index ee2a5d7..78bc961 100644 --- a/src/main.c +++ b/src/main.c @@ -145,7 +145,7 @@ static struct option longopts[] = { {"start-from-pongo", no_argument, NULL, 'P'}, {"debug-logging", no_argument, NULL, 'V'}, {"boot-args", required_argument, NULL, 'e'}, - {"fakefs", required_argument, NULL, 'f'}, + {"rootfs", required_argument, NULL, 'f'}, {NULL, 0, NULL, 0}}; int usage(int e) @@ -161,7 +161,7 @@ int usage(int e) "\t-v, --debug-logging\t\t\tEnable debug logging\n" "\t\tThis option can be repeated for extra verbosity.\n" "\t-e, --boot-args \tXNU boot arguments\n" - "\t-f, --fakefs \t\tBoots fakefs on \n", + "\t-f, --rootfs \t\tBoots rootful setup on \n", getprogname()); exit(e); }