From 0ed1f0052f4762ca9006ca49d9f93ffdd55bffb3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 26 Aug 2003 11:59:16 +0000 Subject: while bootstrapping, only write /etc/modules.conf only if we really altered it (thus preventing depmod to be runned everytime) --- perl-install/harddrake/sound.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/harddrake') 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; } -- cgit v1.2.1