We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f4883f commit cbed8a5Copy full SHA for cbed8a5
1 file changed
tools/kptools.c
@@ -75,11 +75,16 @@ int main(int argc, char *argv[])
75
version = (MAJOR << 16) + (MINOR << 8) + PATCH;
76
program_name = argv[0];
77
if (argc > 2){
78
- set_log_enable(true);
+
79
if (strcmp(argv[1], "unpack") == 0) {
80
+ set_log_enable(true);
81
+ return extract_kernel(argv[2]);
82
+ }
83
+ if (strcmp(argv[1], "unpacknolog") == 0) {
84
return extract_kernel(argv[2]);
85
}
86
else if (strcmp(argv[1], "repack") == 0) {
87
88
return repack_bootimg(argv[2], "kernel", "new-boot.img");
89
90
0 commit comments