summaryrefslogtreecommitdiffstats
path: root/src/detection/board/board_nbsd.c
diff options
context:
space:
mode:
authorsumuel <samuel@yakubos.org>2026-08-17 20:44:55 +0000
committersumuel <samuel@yakubos.org>2026-08-17 20:44:55 +0000
commit76424950e373d3b04ac3dd13019151bfba3e8423 (patch)
tree4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/detection/board/board_nbsd.c
Add the files
Diffstat (limited to 'src/detection/board/board_nbsd.c')
-rw-r--r--src/detection/board/board_nbsd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/detection/board/board_nbsd.c b/src/detection/board/board_nbsd.c
new file mode 100644
index 0000000..cc3ff93
--- /dev/null
+++ b/src/detection/board/board_nbsd.c
@@ -0,0 +1,20 @@
+#include "board.h"
+#include "common/sysctl.h"
+#include "common/smbios.h"
+
+const char* ffDetectBoard(FFBoardResult* board) {
+ if (ffSysctlGetString("machdep.dmi.board-product", &board->name) == NULL) {
+ ffCleanUpSmbiosValue(&board->name);
+ }
+ if (ffSysctlGetString("machdep.dmi.board-version", &board->version) == NULL) {
+ ffCleanUpSmbiosValue(&board->version);
+ }
+ if (ffSysctlGetString("machdep.dmi.board-vendor", &board->vendor) == NULL) {
+ ffCleanUpSmbiosValue(&board->vendor);
+ }
+ if (ffSysctlGetString("machdep.dmi.board-serial", &board->serial) == NULL) {
+ ffCleanUpSmbiosValue(&board->serial);
+ }
+
+ return NULL;
+}