mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Fix SIP parsing
This commit is contained in:
@@ -50,7 +50,7 @@ class PatchSysVolume:
|
|||||||
print(f"- {current_sip_bit}\t {temp}")
|
print(f"- {current_sip_bit}\t {temp}")
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|
||||||
self.sip_patch_status = all(
|
self.sip_needs_change = all(
|
||||||
self.constants.csr_values[i]
|
self.constants.csr_values[i]
|
||||||
for i in [
|
for i in [
|
||||||
"CSR_ALLOW_UNTRUSTED_KEXTS",
|
"CSR_ALLOW_UNTRUSTED_KEXTS",
|
||||||
@@ -63,6 +63,10 @@ class PatchSysVolume:
|
|||||||
"CSR_ALLOW_UNAUTHENTICATED_ROOT",
|
"CSR_ALLOW_UNAUTHENTICATED_ROOT",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
if sip_needs_change is True:
|
||||||
|
self.sip_patch_status = False
|
||||||
|
else:
|
||||||
|
self.sip_patch_status = True
|
||||||
|
|
||||||
def recovery_root_mount(self):
|
def recovery_root_mount(self):
|
||||||
def human_fmt(num):
|
def human_fmt(num):
|
||||||
@@ -433,7 +437,7 @@ class PatchSysVolume:
|
|||||||
else:
|
else:
|
||||||
self.check_status()
|
self.check_status()
|
||||||
Utilities.cls()
|
Utilities.cls()
|
||||||
if True or (self.sip_patch_status is False) and (self.smb_status is False):
|
if (self.sip_patch_status is False) and (self.smb_status is False):
|
||||||
print("- Detected SIP and SecureBootModel are disabled, continuing")
|
print("- Detected SIP and SecureBootModel are disabled, continuing")
|
||||||
if self.constants.gui_mode is False:
|
if self.constants.gui_mode is False:
|
||||||
input("\nPress [ENTER] to continue")
|
input("\nPress [ENTER] to continue")
|
||||||
|
|||||||
Reference in New Issue
Block a user