From: Jay Freeman (saurik) Date: Fri, 3 Dec 2010 00:00:57 +0000 (-0800) Subject: Use reboot2() instead of system("reboot"). X-Git-Tag: v1.1.0%b1~427 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/bb0fe3c941d750de3587298bee36d07ff92debda Use reboot2() instead of system("reboot"). --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 6121e6eb..95963094 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -102,6 +102,7 @@ #include #include #include +#include #include #include @@ -4452,7 +4453,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if (void (*SBReboot)(mach_port_t) = reinterpret_cast(dlsym(RTLD_DEFAULT, "SBReboot"))) SBReboot(SBSSpringBoardServerPort()); else - system("reboot"); + reboot2(RB_AUTOBOOT); break; } } diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 9778f9da..fd834c4b 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -350,6 +350,7 @@ extern float const UIWebViewGrowsAndShrinksToFitHeight; extern float const UIWebViewScalesToFitScale; // }}} // extern "C" *(); {{{ +extern "C" void *reboot2(uint64_t flags); extern "C" mach_port_t SBSSpringBoardServerPort(); extern "C" UIImage *_UIImageWithName(NSString *name); extern "C" void UISetColor(CGColorRef color);