summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 885e48d1f..41084a1c3 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -233,9 +233,9 @@ sub set_pulseaudio_routing {
my ($val) = @_;
substInFile {
if ($val) {
- s/^$disabling_routing//;
+ s/^(?:$disabling_routing)*//g;
} else {
- s/^/$disabling_routing/;
+ s/^/$disabling_routing/ if !/^$disabling_routing/;
}
} $alsa_routing_config_file;
}