summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r--perl-install/network/network.pm4
1 files changed, 3 insertions, 1 deletions
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