diff options
Diffstat (limited to 'twrp.cpp')
-rw-r--r-- | twrp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -91,7 +91,7 @@ int main(int argc, char **argv) { property_set("ro.twrp.version", TW_VERSION_STR); time_t StartupTime = time(NULL); - printf("Starting TWRP %s on %s", TW_VERSION_STR, ctime(&StartupTime)); + printf("Starting TWRP %s on %s (pid %d)", TW_VERSION_STR, ctime(&StartupTime), getpid()); // Load default values to set DataManager constants and handle ifdefs DataManager::SetDefaultValues(); @@ -160,7 +160,7 @@ int main(int argc, char **argv) { PartitionManager.Mount_By_Path("/cache", true); string Zip_File, Reboot_Value; - bool Cache_Wipe = false, Factory_Reset = false, Perform_Backup = false; + bool Cache_Wipe = false, Factory_Reset = false, Perform_Backup = false, Shutdown = false; { TWPartition* misc = PartitionManager.Find_Partition_By_Path("/misc"); @@ -206,6 +206,8 @@ int main(int argc, char **argv) { Cache_Wipe = true; } else if (*argptr == 'n') { Perform_Backup = true; + } else if (*argptr == 'p') { + Shutdown = true; } else if (*argptr == 's') { ptr = argptr; index2 = 0; |