summaryrefslogtreecommitdiffstats
path: root/src/detection/board/board_nbsd.c
diff options
context:
space:
mode:
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;
+}