mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Fix incorrect handling of serial number parsing
This commit is contained in:
+2
-2
@@ -50,9 +50,9 @@ class SMBIOS:
|
|||||||
first_serial = result.stdout.decode().splitlines()[0]
|
first_serial = result.stdout.decode().splitlines()[0]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"MLB": "A" + "0"*15 + "Z" if " | " in first_serial else first_serial.split(" | ")[-1],
|
"MLB": "A" + "0"*15 + "Z" if not " | " in first_serial else first_serial.split(" | ")[-1],
|
||||||
"ROM": random_mac_address,
|
"ROM": random_mac_address,
|
||||||
"SystemProductName": product_name,
|
"SystemProductName": product_name,
|
||||||
"SystemSerialNumber": "A" + "0"*10 + "9" if " | " in first_serial else first_serial.split(" | ")[0],
|
"SystemSerialNumber": "A" + "0"*10 + "9" if not " | " in first_serial else first_serial.split(" | ")[0],
|
||||||
"SystemUUID": str(uuid.uuid4()).upper(),
|
"SystemUUID": str(uuid.uuid4()).upper(),
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user