summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-04-17 15:45:39 +0200
committerJeroen Roovers <jer@gentoo.org>2018-04-17 15:45:53 +0200
commite728a5bfa1ccbd0b5c50fa27fdb46bf74de08dd9 (patch)
tree490924ad511fa8bdf16ea48d984d27dda8127ca3 /eclass/nvidia-driver.eclass
parentdev-util/strace-4.22: Fix static build (diff)
downloadgentoo-e728a5bfa1ccbd0b5c50fa27fdb46bf74de08dd9.tar.gz
gentoo-e728a5bfa1ccbd0b5c50fa27fdb46bf74de08dd9.tar.bz2
gentoo-e728a5bfa1ccbd0b5c50fa27fdb46bf74de08dd9.zip
eclass/nvidia-driver.eclass: Detect the entire display controller device class by Matthew Schultz (bug #653374).
Diffstat (limited to 'eclass/nvidia-driver.eclass')
-rw-r--r--eclass/nvidia-driver.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/nvidia-driver.eclass b/eclass/nvidia-driver.eclass
index 2a6c070ff3a..482c62c012f 100644
--- a/eclass/nvidia-driver.eclass
+++ b/eclass/nvidia-driver.eclass
@@ -110,7 +110,7 @@ mask_390x=">=x11-drivers/nvidia-drivers-391.0.0"
nvidia-driver-get-card() {
local NVIDIA_CARD=$(
[ -x /usr/sbin/lspci ] && /usr/sbin/lspci -d 10de: -n \
- | awk -F'[: ]' '/ 0300: /{print $6}'
+ | awk -F'[: ]' '/ 03[0-9][0-9]: /{print $6}'
)
if [ -n "${NVIDIA_CARD}" ]; then