From 0f38a5dbb601e370650f524d65b17e249028dca5 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 3 Mar 2006 17:02:53 +0000 Subject: write modules_conf when a firewire controller is detected --- perl-install/standalone/service_harddrake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 19d6cd84a..0cbc1258a 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -111,7 +111,11 @@ foreach my $hw_class (@harddrake::data::tree) { log::explanations("removed $Ident: " . harddrake::data::custom_id($oldconfig->{$_}, $item)) foreach @was_removed; log::explanations("added $Ident: " . harddrake::data::custom_id($ID{$_}, $item)) foreach @added; - modules::load_and_configure($modules_conf, 'ohci1394') if $Ident eq 'FIREWIRE_CONTROLLER' && any { $_->{driver} eq 'ohci1394' } @ID{@added}; + if ($Ident eq 'FIREWIRE_CONTROLLER' && any { $_->{driver} eq 'ohci1394' } @ID{@added}) { + modules::load_and_configure($modules_conf, 'ohci1394'); + $modules_conf->write; + } + @added || @was_removed or next; next if $Ident eq 'MOUSE' && $curr_kernel ne $prev_kernel; -- cgit v1.2.1