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.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index ea7a15ab6..03d49e66f 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -222,20 +222,20 @@ sub set_pulseaudio {
my $alsa_routing_config_file = "$::prefix/etc/alsa/pulse-default.conf";
-my $disabling_routing = '#DRAKSOUND- ';
+my $disabling = '#DRAKSOUND- ';
sub is_pulseaudio_routing_enabled() {
return -f $alsa_routing_config_file &&
- cat_($alsa_routing_config_file) !~ /$disabling_routing/;
+ cat_($alsa_routing_config_file) !~ /$disabling/;
}
sub set_pulseaudio_routing {
my ($val) = @_;
substInFile {
if ($val) {
- s/^(?:$disabling_routing)*//g;
+ s/^(?:$disabling)*//g;
} else {
- s/^/$disabling_routing/ if !/^$disabling_routing/;
+ s/^/$disabling/ if !/^$disabling/;
}
} $alsa_routing_config_file;
}