summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-04-14 14:47:33 +0000
committerThierry Vignaud <tv@mandriva.org>2009-04-14 14:47:33 +0000
commit1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad (patch)
tree9daf8fe0d5842dad9df3507abd5fcf4aa20b86c4 /perl-install/harddrake
parentd1e0aaac98ce06b70122767fee43a6caa3a262b3 (diff)
downloaddrakx-backup-do-not-use-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar
drakx-backup-do-not-use-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar.gz
drakx-backup-do-not-use-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar.bz2
drakx-backup-do-not-use-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar.xz
drakx-backup-do-not-use-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.zip
rename $disabling_routing as $disabling (will be reused in next commits)
Diffstat (limited to 'perl-install/harddrake')
-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;
}