summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/data.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-29 06:22:19 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-29 06:22:19 +0000
commita0d5f50a2b485f05acd90518cfa859e69fd18e1e (patch)
tree3bd54f58d3050de5ca5c81c1956ee418e551165d /perl-install/harddrake/data.pm
parent24eb880c55dfa76d4b91b6c68361beafd2b73299 (diff)
downloaddrakx-a0d5f50a2b485f05acd90518cfa859e69fd18e1e.tar
drakx-a0d5f50a2b485f05acd90518cfa859e69fd18e1e.tar.gz
drakx-a0d5f50a2b485f05acd90518cfa859e69fd18e1e.tar.bz2
drakx-a0d5f50a2b485f05acd90518cfa859e69fd18e1e.tar.xz
drakx-a0d5f50a2b485f05acd90518cfa859e69fd18e1e.zip
(set_removable_auto_configurator) copy it out from set_removable_configurator()
(set_removable_configurator) restore it as of MDK10.0 time
Diffstat (limited to 'perl-install/harddrake/data.pm')
-rw-r--r--perl-install/harddrake/data.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 911db832f..f262efd2e 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -38,6 +38,11 @@ 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 --no-flag --auto --add $device->{device}" if is_removable($class);
}