mirror of https://github.com/opa334/TrollStore.git
Fix last
This commit is contained in:
parent
8dc50d7555
commit
28aab08dec
|
@ -50,6 +50,8 @@ typedef CFDictionaryRef (*_CFPreferencesCopyMultipleWithContainerType)(CFArrayRe
|
|||
|
||||
BOOL _installPersistenceHelper(LSApplicationProxy* appProxy, NSString* sourcePersistenceHelper, NSString* sourceRootHelper);
|
||||
|
||||
extern int reboot3(uint64_t flags, ...);
|
||||
|
||||
NSArray<LSApplicationProxy*>* applicationsWithGroupId(NSString* groupId)
|
||||
{
|
||||
LSEnumerator* enumerator = [LSEnumerator enumeratorForApplicationProxiesWithOptions:0];
|
||||
|
@ -1525,6 +1527,11 @@ int MAIN_NAME(int argc, char *argv[], char *envp[])
|
|||
// assumes that checkDeveloperMode() has already been called
|
||||
ret = !armDeveloperMode(NULL);
|
||||
}
|
||||
else if([cmd isEqualToString:@"reboot"])
|
||||
{
|
||||
sync();
|
||||
ret = reboot3(0); // do a normal reboot
|
||||
}
|
||||
|
||||
NSLog(@"trollstorehelper returning %d", ret);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue