mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 20:10:14 +10:00
Add temp workaround to macserial issue
This commit is contained in:
@@ -283,16 +283,20 @@ def BuildSMBIOS():
|
|||||||
new_model
|
new_model
|
||||||
)
|
)
|
||||||
|
|
||||||
# Patch Number Serial
|
if serialData == "['']":
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
# Used as a backup for when macserial fails
|
||||||
"W00000000001",
|
print("Failed to load macserial")
|
||||||
serialData[0]
|
else:
|
||||||
)
|
# Patch Number Serial
|
||||||
# Patch MLB
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
Versions.plist_data = Versions.plist_data.replace(
|
"W00000000001",
|
||||||
"M0000000000000001",
|
serialData[0]
|
||||||
serialData[1]
|
)
|
||||||
)
|
# Patch MLB
|
||||||
|
Versions.plist_data = Versions.plist_data.replace(
|
||||||
|
"M0000000000000001",
|
||||||
|
serialData[1]
|
||||||
|
)
|
||||||
|
|
||||||
# Patch UUID
|
# Patch UUID
|
||||||
uuidGen = subprocess.Popen(["uuidgen"], stdout=subprocess.PIPE).communicate()[0]
|
uuidGen = subprocess.Popen(["uuidgen"], stdout=subprocess.PIPE).communicate()[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user