diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-08-06 20:29:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-08-06 20:29:40 +0000 |
commit | f9640e4952073e66f428c1fe3691c435c1e4bb63 (patch) | |
tree | e5d97ffffdd70547f8a7ca890b181f07827e271f /perl-install/scanner.pm | |
parent | 6e3f96d8e80aaa77c89aca739e9ce65e2f362014 (diff) | |
download | drakx-backup-do-not-use-f9640e4952073e66f428c1fe3691c435c1e4bb63.tar drakx-backup-do-not-use-f9640e4952073e66f428c1fe3691c435c1e4bb63.tar.gz drakx-backup-do-not-use-f9640e4952073e66f428c1fe3691c435c1e4bb63.tar.bz2 drakx-backup-do-not-use-f9640e4952073e66f428c1fe3691c435c1e4bb63.tar.xz drakx-backup-do-not-use-f9640e4952073e66f428c1fe3691c435c1e4bb63.zip |
- dont detect undef devices
Diffstat (limited to 'perl-install/scanner.pm')
-rwxr-xr-x | perl-install/scanner.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/scanner.pm b/perl-install/scanner.pm index 1bc381c9d..a820bd41d 100755 --- a/perl-install/scanner.pm +++ b/perl-install/scanner.pm @@ -65,7 +65,7 @@ sub detect { }}; ++$i; } - foreach ({$_->{media_type} =~ /scanner/ } detect_devices::getSCSI()) { + foreach (grep {$_->{media_type} =~ /scanner/ } detect_devices::getSCSI()) { push @res, { port => "/dev/usb/scanner$i", val => { DESCRIPTION => $_->{info} }, }; |