From a6801e08e3d71ed91d46cc96063e14432bc57f38 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 19 Jan 2004 17:47:56 +0000 Subject: (detect) - adapt modem detection to new detect_devices - keep all data collected on modems --- perl-install/network/netconnect.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index f641e1dcb..8c354ee31 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -31,9 +31,7 @@ sub detect { $auto_detect->{adsl} = network::adsl::adsl_detect(); }, modem => sub { - my ($modem, @pci_modems) = detect_devices::getModem(); - $modem->{device} and $auto_detect->{modem} = $modem->{device}; - @pci_modems and $auto_detect->{winmodem}{$_->{driver}} = $_->{description} foreach @pci_modems; + $auto_detect->{modem} = { map { ($_->{device} || $_->{description}) => $_ } detect_devices::getModem() }; }, ); $l{$_}->() foreach ($o_class || (keys %l)); -- cgit v1.2.1