From f1ee7c77cde28e69abc414b5b92cd7c05089bfb9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 20 Feb 2004 14:17:49 +0000 Subject: alias agpgart should be only for 2.6, since code doesn't allow this easily, adding the agp module to modprobe.preload --- perl-install/modules.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 9cc3bc39b..8e5e19288 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -313,9 +313,12 @@ sub write_conf() { my @l; push @l, 'scsi_hostadapter' if !is_empty_array_ref($conf{scsi_hostadapter}{probeall}); push @l, 'bttv' if detect_devices::matching_driver('^bttv$'); + my @l_26 = @l; + if (my ($agp) = probe_category('various/agpgart')) { + push @l_26, $agp->{driver}; + } append_to_modules_loaded_at_startup("$::prefix/etc/modules", @l); - append_to_modules_loaded_at_startup("$::prefix/etc/modprobe.preload", @l); - + append_to_modules_loaded_at_startup("$::prefix/etc/modprobe.preload", @l_26); #- use module-init-tools script for the moment run_program::rooted($::prefix, "/sbin/generate-modprobe.conf", ">", "/etc/modprobe.conf") if -e "$::prefix/etc/modprobe.conf"; } -- cgit v1.2.1