mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 10:19:49 +00:00
Only add NullEthernet device when no supported network hardware exists
This commit is contained in:
@@ -3159,7 +3159,7 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "WMIS", 0x00000000)
|
||||
else:
|
||||
selected_patches.append("PLUG")
|
||||
|
||||
if not any(network_props.get("Device ID") in pci_data.WirelessCardIDs + pci_data.EthernetIDs for network_props in hardware_report.get("Network", {}).values()):
|
||||
if not hardware_report.get("Network"):
|
||||
selected_patches.append("RMNE")
|
||||
|
||||
if hardware_report.get("Motherboard").get("Chipset") in ("C610/X99", "Wellsburg", "X299"):
|
||||
|
||||
@@ -152,7 +152,6 @@ class KextMaestro:
|
||||
if needs_oclp:
|
||||
selected_kexts.extend(("AMFIPass", "RestrictEvents"))
|
||||
|
||||
ethernet_device = None
|
||||
for network_name, network_props in hardware_report.get("Network", {}).items():
|
||||
device_id = network_props.get("Device ID")
|
||||
|
||||
@@ -237,7 +236,7 @@ class KextMaestro:
|
||||
elif device_id in pci_data.IntelX500IDs:
|
||||
selected_kexts.append("IntelLucy")
|
||||
|
||||
if not ethernet_device:
|
||||
if not hardware_report.get("Network"):
|
||||
selected_kexts.append("NullEthernet")
|
||||
|
||||
for bluetooth_name, bluetooth_props in hardware_report.get("Bluetooth", {}).items():
|
||||
|
||||
Reference in New Issue
Block a user