Host (FreeBSD): detect serial number and uuid

This commit is contained in:
李通洲
2024-01-05 16:32:34 +08:00
parent 810112cb26
commit f8ac56691f
+4
View File
@@ -12,6 +12,10 @@ const char* ffDetectHost(FFHostResult* host)
ffCleanUpSmbiosValue(&host->productVersion);
ffSettingsGetFreeBSDKenv("smbios.system.sku", &host->productSku);
ffCleanUpSmbiosValue(&host->productSku);
ffSettingsGetFreeBSDKenv("smbios.system.serial", &host->productSerial);
ffCleanUpSmbiosValue(&host->productSerial);
ffSettingsGetFreeBSDKenv("smbios.system.uuid", &host->productUuid);
ffCleanUpSmbiosValue(&host->productUuid);
ffSettingsGetFreeBSDKenv("smbios.system.maker", &host->sysVendor);
ffCleanUpSmbiosValue(&host->sysVendor);