summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-07-08 01:21:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-07-08 01:21:42 +0000
commit149bb85110e0f6de5f16d8acbb636644c4fb114d (patch)
tree73a8d37d44e3e7f436118d7d62d353b8111f2324 /perl-install/network
parent0dbe0e74dd84b15f5949035455e3ef1fa568b728 (diff)
downloaddrakx-149bb85110e0f6de5f16d8acbb636644c4fb114d.tar
drakx-149bb85110e0f6de5f16d8acbb636644c4fb114d.tar.gz
drakx-149bb85110e0f6de5f16d8acbb636644c4fb114d.tar.bz2
drakx-149bb85110e0f6de5f16d8acbb636644c4fb114d.tar.xz
drakx-149bb85110e0f6de5f16d8acbb636644c4fb114d.zip
- rename add_alias() into set_alias()
- create set_sound_slot() and use it
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/adsl.pm2
-rw-r--r--perl-install/network/ethernet.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index bc3c170e9..2089dd229 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -307,7 +307,7 @@ TYPE=$kind
# set aliases:
if (exists $modems{$adsl_device}{aliases}) {
- modules::add_alias($_->[0], $_->[1]) foreach @{$modems{$adsl_device}{aliases}};
+ modules::set_alias($_->[0], $_->[1]) foreach @{$modems{$adsl_device}{aliases}};
$::isStandalone and modules::write_conf();
}
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index ea322a7f2..6f9cc8c85 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -87,7 +87,7 @@ sub get_eth_cards_names {
foreach my $card (@all_cards) {
modules::remove_alias($card->[1]);
- modules::add_alias($card->[0], $card->[1]);
+ modules::set_alias($card->[0], $card->[1]);
}
{ map { $_->[0] => join(': ', $_->[0], $_->[2]) } @all_cards };
@@ -134,7 +134,7 @@ sub conf_network_card_backend {
sub configure_eth_aliases() {
foreach (detect_devices::getNet()) {
my $driver = c::getNetDriver($_) or next;
- modules::add_alias($_, $driver);
+ modules::set_alias($_, $driver);
}
}