diff options
Diffstat (limited to 'control-center')
-rwxr-xr-x | control-center | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/control-center b/control-center index 74b48a3a..19ac16b5 100755 --- a/control-center +++ b/control-center @@ -620,9 +620,9 @@ my @tree = [ "Hard Drives", (map { - my ($type, $name, $scan, $text) = @$_; + my ($type, $scan, $text) = @$_; map_index { - my $full_name = $name . ($::i ? $::i + 1 : ''); + my $full_name = $text . ($::i ? $::i + 1 : ''); $programs{$full_name} = { binary => "$sbindir/diskdrake --removable=$_->{device}", @@ -637,11 +637,11 @@ my @tree = foreach (detect_devices::cdroms()) { my $type = detect_devices::isBurner($_) ? 'burner' : detect_devices::isDvdDrive($_) ? 'DVD' : 'cdrom'; push @{$cdroms_by_type{$type}}, $_; - } ([ 'cdrom', N("CD-ROM"), sub { @{$cdroms_by_type{cdrom} || []} }, N("CD-ROM") ], - [ 'dvd', N("DVD"), sub { @{$cdroms_by_type{DVD} || []} }, N("DVD-ROM") ], - [ 'cdwriter', N("CD Burner"), sub { @{$cdroms_by_type{burner} || []} }, N("CD/DVD") ], - [ 'floppy', N("Floppy"), \&detect_devices::floppies, N("Floppy drive") ], - [ 'zip', N("Zip"), \&detect_devices::zips, N("ZIP drive") ], + } ([ 'cdrom', sub { @{$cdroms_by_type{cdrom} || []} }, N("CD-ROM") ], + [ 'dvd', sub { @{$cdroms_by_type{DVD} || []} }, N("DVD-ROM") ], + [ 'cdwriter', sub { @{$cdroms_by_type{burner} || []} }, N("CD/DVD burner") ], + [ 'floppy', \&detect_devices::floppies, N("Floppy drive") ], + [ 'zip', \&detect_devices::zips, N("ZIP drive") ], ), }), "NFS mount points",, |