Skip to content

Commit 49fa20e

Browse files
committed
Disable SIP on legacy Wifi Macs
1 parent 3364ed7 commit 49fa20e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

OCLP-CLI.command

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ If you plan to create the USB for another machine, please select the "Change Mod
204204
self.constants.sip_status = False
205205
self.constants.amfi_status = True
206206
self.constants.allow_fv_root = True # Allow FileVault on broken seal
207+
if (
208+
isinstance(self.computer.wifi, device_probe.Broadcom)
209+
and self.computer.wifi.chipset in [device_probe.Broadcom.Chipsets.AirPortBrcm4331, device_probe.Broadcom.Chipsets.AirPortBrcm43224]
210+
) or (isinstance(self.computer.wifi, device_probe.Atheros) and self.computer.wifi.chipset == device_probe.Atheros.Chipsets.AirPortAtheros40):
211+
self.constants.sip_status = False
212+
self.constants.allow_fv_root = True # Allow FileVault on broken seal
207213
elif model in ModelArray.LegacyGPU:
208214
self.constants.disable_cs_lv = True
209215
if model in ModelArray.LegacyGPU:

OpenCore-Patcher.command

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ class OpenCoreLegacyPatcher:
3535
self.constants.sip_status = False
3636
self.constants.amfi_status = True
3737
self.constants.allow_fv_root = True # Allow FileVault on broken seal
38+
if (
39+
isinstance(self.computer.wifi, device_probe.Broadcom)
40+
and self.computer.wifi.chipset in [device_probe.Broadcom.Chipsets.AirPortBrcm4331, device_probe.Broadcom.Chipsets.AirPortBrcm43224]
41+
) or (isinstance(self.computer.wifi, device_probe.Atheros) and self.computer.wifi.chipset == device_probe.Atheros.Chipsets.AirPortAtheros40):
42+
self.constants.sip_status = False
43+
self.constants.allow_fv_root = True # Allow FileVault on broken seal
3844
elif model in ModelArray.LegacyGPU:
3945
self.constants.disable_cs_lv = True
4046

Resources/SysPatch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ def detect_patch_set(self):
660660

661661
if (
662662
isinstance(self.constants.computer.wifi, device_probe.Broadcom)
663-
and self.computer.wifi.chipset in [device_probe.Broadcom.Chipsets.AirPortBrcm4331, device_probe.Broadcom.Chipsets.AirPortBrcm43224]
664-
) or (isinstance(self.computer.wifi, device_probe.Atheros) and self.computer.wifi.chipset == device_probe.Atheros.Chipsets.AirPortAtheros40):
663+
and self.constants.computer.wifi.chipset in [device_probe.Broadcom.Chipsets.AirPortBrcm4331, device_probe.Broadcom.Chipsets.AirPortBrcm43224]
664+
) or (isinstance(self.constants.computer.wifi, device_probe.Atheros) and self.constants.computer.wifi.chipset == device_probe.Atheros.Chipsets.AirPortAtheros40):
665665
if self.constants.detected_os > self.constants.big_sur:
666666
self.legacy_wifi = True
667667

0 commit comments

Comments
 (0)