Add gpu support for NetBSD

This commit is contained in:
Dylan 2016-01-21 20:41:03 +11:00
parent 3f4f8170b9
commit 30f7146786
1 changed files with 9 additions and 0 deletions

9
fetch
View File

@ -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
;;