From a58beade0a4f5342f5dcd3b3a597f9183de92260 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 27 Sep 2012 09:49:29 -0400 Subject: Port reboot functions to C++ --- recovery.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index d6ed79c7e..35e61162e 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -57,6 +57,7 @@ extern "C" { #include "partitions.hpp" #include "variables.h" #include "openrecoveryscript.hpp" +#include "twrp-functions.hpp" TWPartitionManager PartitionManager; @@ -887,8 +888,8 @@ main(int argc, char **argv) { printf("\n"); // Check for and run startup script if script exists - check_and_run_script("/sbin/runatboot.sh", "boot"); - check_and_run_script("/sbin/postrecoveryboot.sh", "boot"); + TWFunc::check_and_run_script("/sbin/runatboot.sh", "boot"); + TWFunc::check_and_run_script("/sbin/postrecoveryboot.sh", "boot"); #ifdef TW_INCLUDE_INJECTTWRP // Back up TWRP Ramdisk if needed: -- cgit v1.2.3