Add gpu support for NetBSD

This commit is contained in:
Dylan 2016-01-21 20:41:03 +11:00
parent 3f4f8170b9
commit 30f7146786

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