Disable SIP on legacy Wifi Macs

This commit is contained in:
Mykola Grymalyuk
2021-09-23 11:48:10 -06:00
parent 3364ed702a
commit 49fa20ecc3
3 changed files with 14 additions and 2 deletions

View File

@@ -35,6 +35,12 @@ class OpenCoreLegacyPatcher:
self.constants.sip_status = False
self.constants.amfi_status = True
self.constants.allow_fv_root = True # Allow FileVault on broken seal
if (
isinstance(self.computer.wifi, device_probe.Broadcom)
and self.computer.wifi.chipset in [device_probe.Broadcom.Chipsets.AirPortBrcm4331, device_probe.Broadcom.Chipsets.AirPortBrcm43224]
) or (isinstance(self.computer.wifi, device_probe.Atheros) and self.computer.wifi.chipset == device_probe.Atheros.Chipsets.AirPortAtheros40):
self.constants.sip_status = False
self.constants.allow_fv_root = True # Allow FileVault on broken seal
elif model in ModelArray.LegacyGPU:
self.constants.disable_cs_lv = True