summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/service_harddrake
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-03 17:02:53 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-03 17:02:53 +0000
commit0f38a5dbb601e370650f524d65b17e249028dca5 (patch)
treeb67a3eb4dc90c2821c5af9003f10710a470494ff /perl-install/standalone/service_harddrake
parent1920378b490b55057973559723529e4b872f74d0 (diff)
downloaddrakx-backup-do-not-use-0f38a5dbb601e370650f524d65b17e249028dca5.tar
drakx-backup-do-not-use-0f38a5dbb601e370650f524d65b17e249028dca5.tar.gz
drakx-backup-do-not-use-0f38a5dbb601e370650f524d65b17e249028dca5.tar.bz2
drakx-backup-do-not-use-0f38a5dbb601e370650f524d65b17e249028dca5.tar.xz
drakx-backup-do-not-use-0f38a5dbb601e370650f524d65b17e249028dca5.zip
write modules_conf when a firewire controller is detected
Diffstat (limited to 'perl-install/standalone/service_harddrake')
-rwxr-xr-xperl-install/standalone/service_harddrake6
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;