summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-08-18 23:04:14 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-08-18 23:04:14 +0000
commitf77c483090b82d44a7a16c4a026d142f4632d176 (patch)
tree62d104d66f7796d4b6a4a34ec77876a6a35a8205 /perl-install/standalone
parent9f22e457c71c5f0969446dca31b1e0aff1b4a7e8 (diff)
downloaddrakx-f77c483090b82d44a7a16c4a026d142f4632d176.tar
drakx-f77c483090b82d44a7a16c4a026d142f4632d176.tar.gz
drakx-f77c483090b82d44a7a16c4a026d142f4632d176.tar.bz2
drakx-f77c483090b82d44a7a16c4a026d142f4632d176.tar.xz
drakx-f77c483090b82d44a7a16c4a026d142f4632d176.zip
use the new way to blacklist modules (#12731)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index 07b76a06a..564544236 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -22,6 +22,7 @@ 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;
c::_exit(0);
}