@@ 1,1 1,1 @@
-Subproject commit de7c75f144176c3b9be77695d9bf94440445aeae
+Subproject commit 479d53d78cb46f2da6efdad18e1cc87a46cce097
@@ 362,7 362,37 @@ int include_file(int ch, int include_file)
strcat(hold_string, "/");
strcat(hold_string, new_filename + 1);
strcat(new_filename, ">");
- new_file = fopen(hold_string, "r");
+ if(match("Linux", OperatingSystem))
+ {
+ if(NULL == strstr(hold_string, "uefi"))
+ {
+ new_file = fopen(hold_string, "r");
+ }
+ else
+ {
+ puts("skipping:");
+ puts(hold_string);
+ return ch;
+ }
+ }
+ else if(match("uefi", OperatingSystem))
+ {
+ if(NULL == strstr(hold_string, "linux"))
+ {
+ new_file = fopen(hold_string, "r");
+ }
+ else
+ {
+ puts("skipping:");
+ puts(hold_string);
+ return ch;
+ }
+ }
+ else
+ {
+ puts("unknown host");
+ exit(EXIT_FAILURE);
+ }
}
else
{