From 1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 14 Apr 2009 14:47:33 +0000 Subject: rename $disabling_routing as $disabling (will be reused in next commits) --- perl-install/harddrake/sound.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'perl-install') 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; } -- cgit v1.2.1