summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-12-19 13:35:19 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-12-19 13:35:19 +0000
commit005d2c35b911da00661cffc315c95dbd309c0bdf (patch)
tree1455d389675720b6b5d915c8be9a0cdfaf53e1fd /perl-install/detect_devices.pm
parent9b51854c85f9759157d666b602ee25d02a4a8694 (diff)
downloaddrakx-005d2c35b911da00661cffc315c95dbd309c0bdf.tar
drakx-005d2c35b911da00661cffc315c95dbd309c0bdf.tar.gz
drakx-005d2c35b911da00661cffc315c95dbd309c0bdf.tar.bz2
drakx-005d2c35b911da00661cffc315c95dbd309c0bdf.tar.xz
drakx-005d2c35b911da00661cffc315c95dbd309c0bdf.zip
(getSCSI_26) add a comment
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 4f00cf820..5aab1bc12 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -289,6 +289,7 @@ sub getSCSI_26() {
my $usb_dir = readlink("$dir/block/device") =~ m!/usb! && "$dir/block/device/../../../..";
my $get_usb = sub { chomp_(cat_("$usb_dir/$_[0]")) };
+ # handle both old and new kernels:
my $node = -e "$dir/block" ? "$dir/block" : top(glob_("$dir/block*"));
my ($device) = readlink($node) =~ m!/block/(.*)!;
die "cannot get info for device ($host, $channel, $id, $lun)" if !$device;