summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/service_harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-09-07 10:41:43 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-09-07 10:41:43 +0000
commitfaa4ada0db33e6b626b1b000a1fcc7dd1529d2af (patch)
tree9455e8f835abb9513578c2526d072c00969da152 /perl-install/standalone/service_harddrake
parent96acba049fc5b03ca99fc96a466d75181dd23749 (diff)
downloaddrakx-faa4ada0db33e6b626b1b000a1fcc7dd1529d2af.tar
drakx-faa4ada0db33e6b626b1b000a1fcc7dd1529d2af.tar.gz
drakx-faa4ada0db33e6b626b1b000a1fcc7dd1529d2af.tar.bz2
drakx-faa4ada0db33e6b626b1b000a1fcc7dd1529d2af.tar.xz
drakx-faa4ada0db33e6b626b1b000a1fcc7dd1529d2af.zip
blacklist audio too (#12731)
Diffstat (limited to 'perl-install/standalone/service_harddrake')
-rwxr-xr-xperl-install/standalone/service_harddrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 564544236..e186b600e 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -21,8 +21,8 @@ my $force = member('--force', @ARGV);
my $mode = $ARGV[0] eq 'stop' && 'stop';
if ($mode eq 'stop') {
- substInFile { $_ .= "snd-usb-audio\n" if eof } '/etc/hotplug/blacklist';
- append_to_file('/etc/modprobe.conf', "blacklist snd-usb-audio\n") if cat_('/etc/modprobe.conf') !~ /^blacklist snd-usb-audio/m;
+ substInFile { $_ .= "audio\nsnd-usb-audio\n" if eof } '/etc/hotplug/blacklist';
+ append_to_file('/etc/modprobe.conf', "blacklist audio\nblacklist snd-usb-audio\n") if cat_('/etc/modprobe.conf') !~ /^blacklist snd-usb-audio/m;
c::_exit(0);
}