diff options
Diffstat (limited to 'perl-install/unused/scsi.pm')
| -rw-r--r-- | perl-install/unused/scsi.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/unused/scsi.pm b/perl-install/unused/scsi.pm index b92185d46..1755ee255 100644 --- a/perl-install/unused/scsi.pm +++ b/perl-install/unused/scsi.pm @@ -60,11 +60,11 @@ sub ideGetDevices { #- Great. 2.2 kernel, things are much easier and less error prone. foreach my $d (glob_('/proc/ide/hd*')) { - my ($t) = chop_(cat_("$d/media")); - my $type = $ {{disk => 'hd', cdrom => 'cdrom', tape => 'tape', floppy => 'fd'}}{$t} or next; - my ($info) = chop_(cat_("$d/model")); $info ||= "(none)"; + my ($t) = chomp_(cat_("$d/media")); + my $type = ${{ disk => 'hd', cdrom => 'cdrom', tape => 'tape', floppy => 'fd' }}{$t} or next; + my ($info) = chomp_(cat_("$d/model")); $info ||= "(none)"; - my $num = ord (($d =~ /(.)$/)[0]) - ord 'a'; + my $num = ord(($d =~ /(.)$/)[0]) - ord 'a'; push @idi, { type => $type, device => basename($d), info => $info, bus => $num/2, id => $num%2 }; } [ @idi ]; |
