From d491f672f74171724dd45cdb707aa36373b0bb2e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 14 Feb 2005 14:13:51 +0000 Subject: handle removal of cards (#7049) --- perl-install/standalone/service_harddrake | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone/service_harddrake') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 6a77d2898..318a8abee 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -140,6 +140,7 @@ foreach my $hw_class (@harddrake::data::tree) { $modules_conf->write; next; } elsif (member($Ident, qw(AGP ATA_STORAGE SATA_STORAGE SCSI_CONTROLLER TV))) { + $modules_conf->remove_module(difference2([ uniq(map { $_->{driver} } values %$oldconfig) ], [ uniq(map { $_->{driver} } values %ID) ])); # add agpgart and the like modules to modprobe.preload if needed: $modules_conf->write; next; -- cgit v1.2.1