Opt for kernel detection

This commit is contained in:
Mykola Grymalyuk
2021-03-23 19:33:17 -06:00
parent ebc39a58eb
commit ed14fbfff0
35 changed files with 28 additions and 17 deletions

View File

@@ -233,8 +233,8 @@ class PatchSysVolume:
print("Root Patching not required for this machine!")
elif self.model not in ModelArray.SupportedSMBIOS:
print("Cannot run on this machine, model is unsupported!")
elif self.constants.detected_os < 10.16:
print(f"Cannot run on this OS: {self.constants.detected_os}")
elif self.constants.detected_os < 20:
print(f"Cannot run on this OS! Kernel detected: {self.constants.detected_os}")
else:
self.check_status()
utilities.cls()
@@ -262,8 +262,8 @@ class PatchSysVolume:
def start_unpatch(self):
if self.constants.custom_model is not None:
print("Unpatching must be done on target machine!")
elif self.constants.detected_os < 10.16:
print(f"Cannot run on this OS: {self.constants.detected_os}")
elif self.constants.detected_os < 20:
print(f"Cannot run on this OS! Kernel detected: {self.constants.detected_os}")
else:
self.check_status()
utilities.cls()