From 2b044f3fa4a763c67b4f9ef847598193f1462efd Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 30 Oct 2003 22:58:33 +0000 Subject: fix always detecting ethernet cards even when none is present --- perl-install/network/netconnect.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 09bc30243..d632e396b 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -114,7 +114,8 @@ If you don't want to use the auto detection, deselect the checkbox. ); - $conf{$_} = $netc->{autodetect}{$_} ? 1 : 0 foreach 'modem', 'winmodem', 'adsl', 'cable', 'lan'; + $conf{$_} = values %{$netc->{autodetect}{$_}} ? 1 : 0 foreach 'lan'; + $conf{$_} = $netc->{autodetect}{$_} ? 1 : 0 foreach qw(adsl cable modem winmodem); $conf{isdn} = $netc->{autodetect}{isdn}{driver} ? 1 : 0; step_2: -- cgit v1.2.1