From 2388b23be5eb2bf93bc5580435ba4fbf9ecf9575 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 10 Feb 2005 10:59:13 +0000 Subject: (write_preload_conf) simplify and support multiple different AGP controllers (though unprobable) --- perl-install/modules.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/perl-install/modules.pm b/perl-install/modules.pm index be04d9530..f09936b86 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -183,9 +183,7 @@ sub write_preload_conf { push @l, 'nvram' if cat_('/proc/bus/input/devices') =~ m!^N: Name="SynPS/2 Synaptics TouchPad"$!m; push @l, map { $_->{driver} } probe_category('various/laptop'); my @l_26 = @l; - if (my ($agp) = probe_category('various/agpgart')) { - push @l_26, $agp->{driver}; - } + push @l_26, map { $_->{driver} } probe_category('various/agpgart'); append_to_modules_loaded_at_startup("$::prefix/etc/modules", @l); append_to_modules_loaded_at_startup("$::prefix/etc/modprobe.preload", @l_26); } -- cgit v1.2.1