|
@@ -87,8 +87,8 @@ void get_string(char *string);
|
|
|
{
|
|
|
NSString *bootstrapPath = @"https://nitosoft.com/ATV4/bootstraps/";
|
|
|
{
|
|
|
- OurLog(@"srcvers: %@", swVers);
|
|
|
- if ([swVers compare:@"353.50" options:NSNumericSearch] != NSOrderedAscending)
|
|
|
+ OurLog(@"srcvers: %@", swVers);//352.18.1 == 11.0, 353.50 = 11.1
|
|
|
+ if ([swVers compare:@"352.18.1" options:NSNumericSearch] != NSOrderedAscending)
|
|
|
{
|
|
|
OurLog(@"11.x or greater!");
|
|
|
self.versionState = InstallVersionStateEleven;
|
|
@@ -142,12 +142,12 @@ int main(int argc, const char * argv[]) {
|
|
|
|
|
|
NSString *runPath = [[NSFileManager defaultManager] currentDirectoryPath];
|
|
|
nitoInstaller *installer = [nitoInstaller new];
|
|
|
+ //checking for dpkg status file might not be the most elegant check, but if its there we should have bootstrap installed
|
|
|
NSString *fileCheck = @"/var/lib/dpkg/status";
|
|
|
- OurLog(@"\n\nWelcome to the nitoTV 1.0 & bootstrap installer script!");
|
|
|
+ OurLog(@"\n\nWelcome to the nitoTV 2.0 & bootstrap installer script!");
|
|
|
OurLog(@"\nWe will detect your tvOS version and install the compatible bootstrap nitoTV, upon completion nitoTV should appear on your AppleTV\n\n");
|
|
|
if ([[NSFileManager defaultManager] fileExistsAtPath:fileCheck])
|
|
|
{
|
|
|
- //char *prompt = (char *)malloc(200*sizeof(char));
|
|
|
char c;
|
|
|
printf("\nIt appears you have already installed nitoTV and the bootstrap, it is NOT recommended to do this again, are you sure you want to continue? [y/n]?");
|
|
|
c=getchar();
|
|
@@ -158,8 +158,6 @@ int main(int argc, const char * argv[]) {
|
|
|
}
|
|
|
c=getchar();
|
|
|
}
|
|
|
- //*prompt=c;
|
|
|
- //OurLog(@"%@",[NSString stringWithUTF8String:science]);
|
|
|
|
|
|
if (c == 'n')
|
|
|
{
|
|
@@ -216,11 +214,12 @@ int main(int argc, const char * argv[]) {
|
|
|
if (self.versionState == InstallVersionStateNine)
|
|
|
{
|
|
|
[nitoInstaller returnForProcess:@"/usr/bin/killall -9 PineBoard HeadBoard lsd nitoTV"];
|
|
|
+ sleep(35);
|
|
|
+ } else {
|
|
|
+
|
|
|
+ sleep(10);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- sleep(10);
|
|
|
-
|
|
|
[self openApp:@"com.nito.nitoTV4"];
|
|
|
|
|
|
CFRunLoopStop(CFRunLoopGetCurrent());
|