diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2003-02-06 17:03:22 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2003-02-06 17:03:22 +0000 |
commit | 9e15bb5fa4a3ebce2845c47cdc31034dd8c4d281 (patch) | |
tree | ddb0ae7a2324655d3984917a6dc24e2c5ebcaaf7 /perl-install/printer | |
parent | 6c402648e8218f57f2f402c46dfeefe8c5541ecf (diff) | |
download | drakx-backup-do-not-use-9e15bb5fa4a3ebce2845c47cdc31034dd8c4d281.tar drakx-backup-do-not-use-9e15bb5fa4a3ebce2845c47cdc31034dd8c4d281.tar.gz drakx-backup-do-not-use-9e15bb5fa4a3ebce2845c47cdc31034dd8c4d281.tar.bz2 drakx-backup-do-not-use-9e15bb5fa4a3ebce2845c47cdc31034dd8c4d281.tar.xz drakx-backup-do-not-use-9e15bb5fa4a3ebce2845c47cdc31034dd8c4d281.zip |
Corrected call for "tryWrite" function.
Diffstat (limited to 'perl-install/printer')
-rw-r--r-- | perl-install/printer/detect.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm index 5a4c3e1f8..0f7537a2f 100644 --- a/perl-install/printer/detect.pm +++ b/perl-install/printer/detect.pm @@ -3,6 +3,7 @@ package printer::detect; use strict; use common; use modules; +use detect_devices; sub local_detect { modules::get_probeall("usb-interface") and eval { modules::load("printer") }; @@ -53,7 +54,7 @@ sub whatParport() { } sub whatPrinterPort() { - grep { tryWrite($_) } qw(/dev/lp0 /dev/lp1 /dev/lp2 /dev/usb/lp0 /dev/usb/lp1 /dev/usb/lp2 /dev/usb/lp3 /dev/usb/lp4 /dev/usb/lp5 /dev/usb/lp6 /dev/usb/lp7 /dev/usb/lp8 /dev/usb/lp9); + grep { detect_devices::tryWrite($_) } qw(/dev/lp0 /dev/lp1 /dev/lp2 /dev/usb/lp0 /dev/usb/lp1 /dev/usb/lp2 /dev/usb/lp3 /dev/usb/lp4 /dev/usb/lp5 /dev/usb/lp6 /dev/usb/lp7 /dev/usb/lp8 /dev/usb/lp9); } sub whatUsbport() { |