summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/proprietary.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Xconfig/proprietary.pm')
-rw-r--r--lib/Xconfig/proprietary.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Xconfig/proprietary.pm b/lib/Xconfig/proprietary.pm
index 5dcf17d..756387c 100644
--- a/lib/Xconfig/proprietary.pm
+++ b/lib/Xconfig/proprietary.pm
@@ -81,10 +81,8 @@ sub may_use_Driver2 {
my $card2 = {
%$card,
- $card->{Driver2} =~ /^nvidia(.*)/ ?
- (Driver => 'nvidia', DriverVersion => $1) :
- $card->{Driver2} =~ /^fglrx(.*)/ ?
- (Driver => 'fglrx', DriverVersion => $1) :
+ $card->{Driver2} =~ /^(fglrx|nvidia)(.*)/ ?
+ (Driver => $1, DriverVersion => $2) :
(Driver => $card->{Driver2}),
};