summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/harddrake')
-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;
}