Skip to content

Commit 8331242

Browse files
committed
GPU (BSD): fallbacks to pciids/pci.ids
1 parent 79fea61 commit 8331242

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/detection/gpu/gpu_pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ static const FFstrbuf* loadPciIds()
4747
}
4848
#elif __OpenBSD__ || __FreeBSD__ || __NetBSD__
4949
ffReadFileBuffer(_PATH_LOCALBASE "/share/hwdata/pci.ids", &pciids);
50+
if (pciids.length == 0)
51+
ffReadFileBuffer(_PATH_LOCALBASE "/share/pciids/pci.ids", &pciids);
5052
#elif __sun
5153
ffReadFileBuffer(FASTFETCH_TARGET_DIR_ROOT "/usr/share/hwdata/pci.ids", &pciids);
5254
#elif __HAIKU__

0 commit comments

Comments
 (0)