From 27cf10125b84dae5eb815021bebca33a1c37c1f8 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 7 Oct 2024 23:11:43 +0700 Subject: [PATCH] Update kext unchecking logic to exclude required kexts --- Scripts/kext_maestro.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py index 353cb1a..ff914a8 100644 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -7,6 +7,13 @@ from Scripts import utils import os import shutil +try: + long + unicode +except NameError: + long = int + unicode = str + class KextMaestro: def __init__(self): self.utils = utils.Utils() @@ -429,7 +436,7 @@ class KextMaestro: for index in indices: if index >= 0 and index < len(self.kexts): kext = self.kexts[index] - if kext.checked: + if kext.checked and not kext.required: self.uncheck_kext(index) else: self.check_kext(index, macos_version) \ No newline at end of file