diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-04-14 14:47:33 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-04-14 14:47:33 +0000 |
commit | 1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad (patch) | |
tree | 9daf8fe0d5842dad9df3507abd5fcf4aa20b86c4 /perl-install/harddrake/sound.pm | |
parent | d1e0aaac98ce06b70122767fee43a6caa3a262b3 (diff) | |
download | drakx-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar drakx-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar.gz drakx-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar.bz2 drakx-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.tar.xz drakx-1c4f13fccfb4dcc0ec7a62cc6277a8ddfa5a19ad.zip |
rename $disabling_routing as $disabling (will be reused in next commits)
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r-- | perl-install/harddrake/sound.pm | 8 |
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; } |