From 4e2d865fc75a18252c57a8b3f70075efb0af19bf Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 16 Sep 2004 06:54:30 +0000 Subject: (read_all_conf) use network::tools to probe connection type --- perl-install/network/network.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index a578e32f0..c3faf7ae9 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -347,7 +347,9 @@ sub read_all_conf { $intf->{WIRELESS_ENC_KEY} = network::tools::get_wep_key_from_iwconfig($intf->{WIRELESS_ENC_KEY}); } } - $netcnx->{type} or probe_netcnx_type($::prefix, $netc, $intf, $netcnx); + if (my $default_intf = network::tools::get_default_gateway_interface($netc, $intf)) { + $netcnx->{type} ||= network::tools::get_interface_type($intf->{$default_intf}); + } } #- FIXME: this is buggy, use network::tools::get_default_gateway_interface -- cgit v1.2.1