summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2002-02-12 19:42:52 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2002-02-12 19:42:52 +0000
commitdb45b048efabc698b35fd703da71b5c12dd58235 (patch)
tree9671ec71e11f759660955a1e02fc5858aafd33e3 /perl-install/detect_devices.pm
parent9c4e0788e89157da0ee23503ab9563712c314089 (diff)
downloaddrakx-db45b048efabc698b35fd703da71b5c12dd58235.tar
drakx-db45b048efabc698b35fd703da71b5c12dd58235.tar.gz
drakx-db45b048efabc698b35fd703da71b5c12dd58235.tar.bz2
drakx-db45b048efabc698b35fd703da71b5c12dd58235.tar.xz
drakx-db45b048efabc698b35fd703da71b5c12dd58235.zip
Fixes on device auto-detection:
- Made USB printer auto-detection routine in "detect_devices.pm" creating the appropriate device nodes (needed for USB printers being recognized during installation). - Fixed "devices.pm" to be able to handle device files with numbers geater than 9 (ex: /dev/usb/lp10).
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 7c33470ff..e658f33e6 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -403,6 +403,7 @@ sub whatUsbport() {
my @res = ();
foreach $i (0..15) {
my $port = "/dev/usb/lp$i";
+ devices::make("$port");
open PORT, "$port" or next;
my $idstr;
# Calculation of IOCTL function 0x84005001 (to get device ID string):