diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-03-03 17:02:53 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-03-03 17:02:53 +0000 |
commit | 0f38a5dbb601e370650f524d65b17e249028dca5 (patch) | |
tree | b67a3eb4dc90c2821c5af9003f10710a470494ff /perl-install/standalone/service_harddrake | |
parent | 1920378b490b55057973559723529e4b872f74d0 (diff) | |
download | drakx-0f38a5dbb601e370650f524d65b17e249028dca5.tar drakx-0f38a5dbb601e370650f524d65b17e249028dca5.tar.gz drakx-0f38a5dbb601e370650f524d65b17e249028dca5.tar.bz2 drakx-0f38a5dbb601e370650f524d65b17e249028dca5.tar.xz drakx-0f38a5dbb601e370650f524d65b17e249028dca5.zip |
write modules_conf when a firewire controller is detected
Diffstat (limited to 'perl-install/standalone/service_harddrake')
-rwxr-xr-x | perl-install/standalone/service_harddrake | 6 |
1 files changed, 5 insertions, 1 deletions
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; |