diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-02-10 14:19:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-02-10 14:19:42 +0000 |
commit | 0b6409cdaa2466cf2bd9f062bbac45a266e71cf8 (patch) | |
tree | 69c0f5d9f50d87593a407b76bade1483020e3a2a | |
parent | 29eff302aebef500543b0a1b8ec082d53002d422 (diff) | |
download | drakx-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar drakx-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar.gz drakx-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar.bz2 drakx-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.tar.xz drakx-0b6409cdaa2466cf2bd9f062bbac45a266e71cf8.zip |
rely on new "multimedia/webcam" category for detecting webcams
-rw-r--r-- | perl-install/harddrake/data.pm | 7 |
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, |