Add gpu support for NetBSD
This commit is contained in:
parent
3f4f8170b9
commit
30f7146786
1 changed files with 9 additions and 0 deletions
9
fetch
9
fetch
|
@ -724,6 +724,15 @@ getgpu () {
|
|||
gpu=${gpu//[[:space:]]/ }
|
||||
gpu=${gpu// /}
|
||||
;;
|
||||
|
||||
"NetBSD")
|
||||
for BUS in /dev/pci*; do
|
||||
gpu="$(pcictl ${BUS} list 2>/dev/null | grep "VGA")"
|
||||
done
|
||||
|
||||
gpu=${gpu/???:??:?: }
|
||||
gpu=${gpu/\(*\)}
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue