summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/network/netconnect.pm4
-rw-r--r--perl-install/network/network.pm2
-rwxr-xr-xperl-install/standalone/drakconnect4
3 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 3e6ea445f..3f0cdc7b8 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -24,7 +24,7 @@ sub detect {
lan => sub { # ethernet
modules::load_category('network/main|gigabit|usb');
require network::ethernet;
- $auto_detect->{lan} = { map { $_->[0] => $_->[1] } network::ethernet::conf_network_card_backend() };
+ $auto_detect->{lan} = { map { $_->[0] => $_->[1] } network::ethernet::get_eth_cards() };
},
adsl => sub {
require network::adsl;
@@ -941,7 +941,7 @@ See iwpriv(8) man page for further information."),
pre => sub {
#-type =static or dhcp
modules::interactive::load_category($in, 'network/main|gigabit|usb', !$::expert, 1);
- @all_cards = conf_network_card_backend($netc, $intf, $type, undef, $ipadr, $netadr) or
+ @all_cards = network::ethernet::get_eth_cards() or
# FIXME: fix this
$in->ask_warn(N("Error"), N("No ethernet network adapter has been detected on your system.
I cannot set up this connection type.")), return;
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 51460d54b..cccd4767d 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -368,7 +368,7 @@ sub easy_dhcp {
require modules;
require network::ethernet;
modules::load_category('network/main|gigabit|usb');
- my @all_cards = network::ethernet::conf_network_card_backend();
+ my @all_cards = network::ethernet::get_eth_cards();
#- only for a single network card
(any { $_->[0] eq 'eth0' } @all_cards) && (every { $_->[0] ne 'eth1' } @all_cards) or return;
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index e378da94b..b987513c3 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -579,7 +579,7 @@ sub get_intf_ip {
my %intf;
sub update_list() {
- @all_cards = network::ethernet::conf_network_card_backend($netc, $intf);
+ @all_cards = network::ethernet::get_eth_cards();
my %new_intf = map { @$_ } @all_cards;
my @new_intf = sort keys %new_intf;
foreach my $interface (difference2(\@new_intf, [ keys %intf ])) {
@@ -919,7 +919,7 @@ Please run \"Internet access\" in control center."));
sub reread_net_conf() {
network::netconnect::read_net_conf('', $netcnx, $netc);
modules::load_category('net');
- @all_cards = network::ethernet::conf_network_card_backend($netc, $intf);
+ @all_cards = network::ethernet::get_eth_cards();
network::netconnect::load_conf($netcnx, $netc, $intf);
network::network::probe_netcnx_type('', $netc, $intf, $netcnx);
}