summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/service_harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-10-01 09:17:11 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-10-01 09:17:11 +0000
commitaf83ff51852066887ce9f9b4b5a946bfff4a2990 (patch)
treebfd811ded8f6c8d83580282592b41765f2a76152 /perl-install/standalone/service_harddrake
parent679643f2f20ed51be7dee5754174005910a84375 (diff)
downloaddrakx-af83ff51852066887ce9f9b4b5a946bfff4a2990.tar
drakx-af83ff51852066887ce9f9b4b5a946bfff4a2990.tar.gz
drakx-af83ff51852066887ce9f9b4b5a946bfff4a2990.tar.bz2
drakx-af83ff51852066887ce9f9b4b5a946bfff4a2990.tar.xz
drakx-af83ff51852066887ce9f9b4b5a946bfff4a2990.zip
on stop blacklist snd-usb-audio
Diffstat (limited to 'perl-install/standalone/service_harddrake')
-rwxr-xr-xperl-install/standalone/service_harddrake7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index c19be0453..bb5b86c75 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -18,6 +18,13 @@ use Storable qw(store retrieve);
my $force = any { $_ eq '--force' } @ARGV;
+my $mode = 'stop' if $ARGV[0] eq 'stop';
+
+if ($mode eq 'stop') {
+ append_to_file('/etc/hotplug/blacklist', "\nsnd-usb-audio\n");
+ c::_exit(0);
+}
+
my $invert_do_it = $ARGV[0] eq 'X11' ? 1 : 0;
my ($hw_sysconfdir, $timeout) = ("/etc/sysconfig/harddrake2", $invert_do_it ? 600 : 25);
my $last_boot_config = "$hw_sysconfdir/previous_hw";