From 5b5a3440e2a96654daaa0880048e59323bfa6b66 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Tue, 12 Feb 2002 20:01:54 +0000 Subject: In the USB auto-detection checked whether and where the device node was created. --- perl-install/detect_devices.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index e658f33e6..e63ba16a8 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -403,8 +403,9 @@ sub whatUsbport() { my @res = (); foreach $i (0..15) { my $port = "/dev/usb/lp$i"; - devices::make("$port"); - open PORT, "$port" or next; + my $realport = devices::make("$port"); + next if (!$realport); + open PORT, "$realport" or next; my $idstr; # Calculation of IOCTL function 0x84005001 (to get device ID string): # len = 1024 -- cgit v1.2.1