summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-08-26 11:59:16 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-08-26 11:59:16 +0000
commit0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3 (patch)
tree87626f109e2efa7d7cd0a6e2221e847600e98a1c /perl-install/harddrake/sound.pm
parentbdb8da1d8761802650c00f96b89b26bc6bf01181 (diff)
downloaddrakx-backup-do-not-use-0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3.tar
drakx-backup-do-not-use-0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3.tar.gz
drakx-backup-do-not-use-0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3.tar.bz2
drakx-backup-do-not-use-0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3.tar.xz
drakx-backup-do-not-use-0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3.zip
while bootstrapping, only write /etc/modules.conf only if we really altered it
(thus preventing depmod to be runned everytime)
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index f11b9a23b..dbade4e7c 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -290,9 +290,12 @@ The current driver for your \"%s\" sound card is \"%s\" ", $device->{description
sub configure_sound_slots() {
+ my $altered = 0;
each_index {
+ $altered ||= modules::get_alias("sound-slot-$::i") ne $_->{driver};
modules::add_alias("sound-slot-$::i", $_->{driver});
} detect_devices::getSoundDevices();
+ modules::write_conf() if $altered && $::isStandalone;
}