diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2023-02-20 14:15:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 14:15:15 +0000 |
| commit | 474ada9267ccb98015991ee9d0d93fbb5da72034 (patch) | |
| tree | b53e9f2f16e47974e3a42d275b457d0aa9542fe4 /src/helpers/MiscFunctions.cpp | |
| parent | 784cdd76380b844bec286416de297daca3fbcdc7 (diff) | |
Unbreak CrashReporter on FreeBSD (#1589)
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index dcc1efbd..10d59316 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -412,7 +412,11 @@ void logSystemInfo() { Debug::log(NONE, "\n"); +#if defined(__DragonFly__) || defined(__FreeBSD__) + const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga"); +#else const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA"); +#endif Debug::log(LOG, "GPU information:\n%s\n", GPUINFO.c_str()); if (GPUINFO.contains("NVIDIA")) { |
