summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/harddrake/sound.pm3
-rwxr-xr-xperl-install/standalone/service_harddrake1
2 files changed, 3 insertions, 1 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;
}
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 9b960de5c..3dccca3ff 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -95,6 +95,5 @@ Storable::store(\%config, $last_boot_config);
# automatic sound slots configuration
harddrake::sound::configure_sound_slots();
-modules::write_conf();
$in->exit(0) if $in;