From 0b6409cdaa2466cf2bd9f062bbac45a266e71cf8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 10 Feb 2005 14:19:42 +0000 Subject: rely on new "multimedia/webcam" category for detecting webcams --- perl-install/harddrake/data.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'perl-install/harddrake') 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, -- cgit v1.2.1