From 4b072a27e35d3476ea536a12538c092a6152b3f6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 29 Jul 2004 06:24:22 +0000 Subject: merge fix from HEAD: do not automatically configure removable media in harddrake GUI (only in harddrake service) --- perl-install/harddrake/data.pm | 5 +++++ perl-install/standalone/service_harddrake | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm index 70ce2c5c8..00f6c1d33 100644 --- a/perl-install/harddrake/data.pm +++ b/perl-install/harddrake/data.pm @@ -37,6 +37,11 @@ sub f { sub is_removable { $_[0] =~ /FLOPPY|ZIP|DVDROM|CDROM|BURNER/ } sub set_removable_configurator { + my ($class, $device) = @_; + return "/usr/sbin/diskdrake --removable=$device->{device}" if is_removable($class); + } + +sub set_removable_auto_configurator { my ($class, $device) = @_; return "/usr/sbin/drakupdate_fstab --auto --no-flag --add $device->{device}" if is_removable($class); } diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 1b95f6cf1..e107edf57 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -83,7 +83,7 @@ foreach my $hw_class (@harddrake::data::tree) { my @configurator_pool; if (harddrake::data::is_removable($Ident)) { foreach my $device (@ID{@added}) { - push @configurator_pool, harddrake::data::set_removable_configurator($Ident, $device); + push @configurator_pool, harddrake::data::set_removable_auto_configurator($Ident, $device); }; foreach my $device (@$oldconfig{@was_removed}) { push @configurator_pool, harddrake::data::set_removable_remover($Ident, $device); -- cgit v1.2.1