mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
Bios (NetBSD): adds fall back method
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "bios.h"
|
||||
#include "common/sysctl.h"
|
||||
#include "common/smbios.h"
|
||||
#include "common/io.h"
|
||||
|
||||
const char* ffDetectBios(FFBiosResult* bios) {
|
||||
if (ffSysctlGetString("machdep.dmi.bios-date", &bios->date) == NULL) {
|
||||
@@ -12,6 +13,8 @@ const char* ffDetectBios(FFBiosResult* bios) {
|
||||
if (ffSysctlGetString("machdep.dmi.bios-vendor", &bios->vendor) == NULL) {
|
||||
ffCleanUpSmbiosValue(&bios->vendor);
|
||||
}
|
||||
ffSysctlGetString("machdep.bootmethod", &bios->type);
|
||||
if (ffSysctlGetString("machdep.bootmethod", &bios->type) != NULL) {
|
||||
ffStrbufSetStatic(&bios->type, ffPathExists("/dev/efi", FF_PATHTYPE_FILE) ? "UEFI" : "BIOS");
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user