summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-21 12:22:08 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-21 12:22:08 +0000
commit79655753befda870a059c6f2585276bad33139f2 (patch)
tree81dadbaf284c977eb6e101c412e0abf572b88294 /perl-install/harddrake
parent184cbe104549ec01e766aa353551fb8d1b1e133e (diff)
downloaddrakx-backup-do-not-use-79655753befda870a059c6f2585276bad33139f2.tar
drakx-backup-do-not-use-79655753befda870a059c6f2585276bad33139f2.tar.gz
drakx-backup-do-not-use-79655753befda870a059c6f2585276bad33139f2.tar.bz2
drakx-backup-do-not-use-79655753befda870a059c6f2585276bad33139f2.tar.xz
drakx-backup-do-not-use-79655753befda870a059c6f2585276bad33139f2.zip
rename media auto configuration functions (and restore old is_removable)
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/data.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 231f5991d..398602761 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -35,21 +35,22 @@ sub f {
# FIXME: add translated items
-sub is_removable { $_[0] =~ /FLOPPY|ZIP|HARDDISK/ }
+sub is_removable { $_[0] =~ /FLOPPY|ZIP|DVDROM|CDROM|BURNER/ }
+sub is_auto_configurable_media { $_[0] =~ /FLOPPY|ZIP|HARDDISK/ }
sub set_removable_configurator {
my ($class, $device) = @_;
return "/usr/sbin/diskdrake --removable=$device->{device}" if is_removable($class);
}
-sub set_removable_auto_configurator {
+sub set_media_auto_configurator {
my ($class, $device) = @_;
- return "/usr/sbin/drakupdate_fstab --no-flag --auto --add $device->{device}" if is_removable($class);
+ return "/usr/sbin/drakupdate_fstab --no-flag --auto --add $device->{device}" if is_auto_configurable_media($class);
}
-sub set_removable_remover {
+sub set_media_remover {
my ($class, $device) = @_;
- return "/usr/sbin/drakupdate_fstab --no-flag --del $device->{device}" if is_removable($class);
+ return "/usr/sbin/drakupdate_fstab --no-flag --del $device->{device}" if is_auto_configurable_media($class);
}
my $modules_conf = modules::any_conf->read;