summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-02-10 14:19:42 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-02-10 14:19:42 +0000
commit0b6409cdaa2466cf2bd9f062bbac45a266e71cf8 (patch)
tree69c0f5d9f50d87593a407b76bade1483020e3a2a /perl-install/harddrake
parent29eff302aebef500543b0a1b8ec082d53002d422 (diff)
downloaddrakx-backup-do-not-use-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar
drakx-backup-do-not-use-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar.gz
drakx-backup-do-not-use-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar.bz2
drakx-backup-do-not-use-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar.xz
drakx-backup-do-not-use-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.zip
rely on new "multimedia/webcam" category for detecting webcams
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/data.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/harddrake/data.pm b/perl-install/harddrake/data.pm
index 9b2cb1bed..48fc019af 100644
--- a/perl-install/harddrake/data.pm
+++ b/perl-install/harddrake/data.pm
@@ -167,10 +167,9 @@ our @tree =
icon => "webcam.png",
configurator => "",
detector => sub {
- f(grep {
- $_->{media_type} =~ /MULTIMEDIA_VIDEO/ && $_->{bus} ne 'PCI'
- || member($_->{driver}, qw(cpia_usb cyber2000fb ibmcam mod_quickcam ov511 ov518_decomp pwc ultracam usbvideo));
- } @devices);
+ require list_modules;
+ my @modules = list_modules::category2modules('multimedia/webcam');
+ f(grep { $_->{media_type} =~ /MULTIMEDIA_VIDEO/ && $_->{bus} ne 'PCI' || member($_->{driver}, @modules) } @devices);
},
# managed by hotplug:
checked_on_boot => 0,