We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5783ef9 commit 168723dCopy full SHA for 168723d
licensing/methods.py
@@ -72,6 +72,8 @@ def GetMachineCode():
72
elif "Mac" in platform.platform():
73
res = HelperMethods.start_process(["system_profiler","SPHardwareDataType"]).decode('utf-8')
74
HelperMethods.get_SHA256(res[res.index("UUID"):].strip())
75
+ elif "Linux" in platform.platform():
76
+ return HelperMethods.get_SHA256(HelperMethods.start_process(["dmidecode", "-s", "system-uuid"]))
77
else:
78
return HelperMethods.get_SHA256(HelperMethods.start_process(["dmidecode", "-s", "system-uuid"]).decode('utf-8'))
79
0 commit comments