summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-04 16:01:34 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-04 16:01:34 +0000
commit563fa5f3a9bea3e22073f34446dfbc6dfcf7b0fb (patch)
tree90158ba57700a771bb70c144a31d485e6bf752b9 /perl-install
parent9e4bb12957bd0a7770801ae7e5ab892174912921 (diff)
downloaddrakx-backup-do-not-use-563fa5f3a9bea3e22073f34446dfbc6dfcf7b0fb.tar
drakx-backup-do-not-use-563fa5f3a9bea3e22073f34446dfbc6dfcf7b0fb.tar.gz
drakx-backup-do-not-use-563fa5f3a9bea3e22073f34446dfbc6dfcf7b0fb.tar.bz2
drakx-backup-do-not-use-563fa5f3a9bea3e22073f34446dfbc6dfcf7b0fb.tar.xz
drakx-backup-do-not-use-563fa5f3a9bea3e22073f34446dfbc6dfcf7b0fb.zip
fixed parport probe for printer under 2.4 kernel.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 51fb9e95b..6d0d1cc31 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -262,10 +262,11 @@ sub hasUltra66 {
}
sub whatParport() {
- my @res =();
+ my @res = ();
foreach (0..3) {
my $elem = {};
- local *F; open F, "/proc/parport/$_/autoprobe" or next;
+ local *F;
+ open F, "/proc/parport/$_/autoprobe" or open F, "/proc/sys/dev/parport/parport$_/autoprobe" or next;
local $_;
while (<F>) { $elem->{$1} = $2 if /(.*):(.*);/ }
push @res, { port => "/dev/lp$_", val => $elem};