summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-05-19 14:12:51 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-05-19 14:12:51 +0000
commitb6c81a431dc681db51eaf22eaf090c280b56d9f4 (patch)
tree8fae13da62744d8e0b12e1545abe2582c5bfa4fc /perl-install/standalone
parentfbc45ca35ec37193c98efe2e804278b26ef34eb6 (diff)
downloaddrakx-b6c81a431dc681db51eaf22eaf090c280b56d9f4.tar
drakx-b6c81a431dc681db51eaf22eaf090c280b56d9f4.tar.gz
drakx-b6c81a431dc681db51eaf22eaf090c280b56d9f4.tar.bz2
drakx-b6c81a431dc681db51eaf22eaf090c280b56d9f4.tar.xz
drakx-b6c81a431dc681db51eaf22eaf090c280b56d9f4.zip
localize drive capabilites (aka burning, dvd managment, ...)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/harddrake25
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2
index 6127f3b6b..627d355af 100755
--- a/perl-install/standalone/harddrake2
+++ b/perl-install/standalone/harddrake2
@@ -273,6 +273,11 @@ foreach (@harddrake::data::tree) {
my $i = $_;
$_->{bus_location} = join ':', map { sprintf("%lx", $i->{$_}) } qw(channel id lun);
}
+ if (defined $_->{capacity}) {
+ my ($burner, $dvd) = (N("burner"), N("DVD"));
+ $_->{capacity} =~ s/burner/$burner/;
+ $_->{capacity} =~ s/DVD/$dvd/;
+ }
$configurator .= harddrake::data::set_removable_configurator($Ident, $_);
if ($Ident eq "AUDIO") {
require harddrake::sound;