diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 5 |
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}; |