mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 09:58:03 +02:00
Chassis (FreeBSD): add support
This commit is contained in:
+1
-1
@@ -431,7 +431,7 @@ elseif(BSD)
|
||||
src/detection/bluetooth/bluetooth_linux.c
|
||||
src/detection/board/board_bsd.c
|
||||
src/detection/brightness/brightness_nosupport.c
|
||||
src/detection/chassis/chassis_nosupport.c
|
||||
src/detection/chassis/chassis_bsd.c
|
||||
src/detection/cpu/cpu_bsd.c
|
||||
src/detection/cpuusage/cpuusage_bsd.c
|
||||
src/detection/cursor/cursor_linux.c
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "chassis.h"
|
||||
#include "common/settings.h"
|
||||
|
||||
void ffDetectChassis(FFChassisResult* result)
|
||||
{
|
||||
ffStrbufInit(&result->error);
|
||||
ffStrbufInit(&result->chassisType);
|
||||
ffStrbufInit(&result->chassisVendor);
|
||||
ffStrbufInit(&result->chassisVersion);
|
||||
ffSettingsGetFreeBSDKenv("smbios.chassis.type", &result->chassisType);
|
||||
ffSettingsGetFreeBSDKenv("smbios.chassis.maker", &result->chassisVendor);
|
||||
ffSettingsGetFreeBSDKenv("smbios.chassis.version", &result->chassisVersion);
|
||||
}
|
||||
Reference in New Issue
Block a user