mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Board (FreeBSD): add support
This commit is contained in:
+1
-1
@@ -429,7 +429,7 @@ elseif(BSD)
|
||||
src/detection/battery/battery_bsd.c
|
||||
src/detection/bios/bios_bsd.c
|
||||
src/detection/bluetooth/bluetooth_linux.c
|
||||
src/detection/board/board_nosupport.c
|
||||
src/detection/board/board_bsd.c
|
||||
src/detection/brightness/brightness_nosupport.c
|
||||
src/detection/chassis/chassis_nosupport.c
|
||||
src/detection/cpu/cpu_bsd.c
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#include "board.h"
|
||||
#include "common/settings.h"
|
||||
|
||||
void ffDetectBoard(FFBoardResult* board)
|
||||
{
|
||||
ffStrbufInit(&board->boardName);
|
||||
ffStrbufInit(&board->boardVendor);
|
||||
ffStrbufInit(&board->boardVersion);
|
||||
ffSettingsGetFreeBSDKenv("smbios.planar.product", &board->boardName);
|
||||
ffSettingsGetFreeBSDKenv("smbios.planar.maker", &board->boardVendor);
|
||||
ffSettingsGetFreeBSDKenv("smbios.planar.version", &board->boardVersion);
|
||||
}
|
||||
Reference in New Issue
Block a user