summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-06 16:53:52 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-06 16:53:52 +0000
commit78d749b2a6a4173e89e957d688de90202583b0fa (patch)
tree750ac550c1b10fabe32bd6a3e80bec79dcd07b24 /perl-install/network/ethernet.pm
parent28e50c659233b8f8ff27b65579de66412bab92fb (diff)
downloaddrakx-78d749b2a6a4173e89e957d688de90202583b0fa.tar
drakx-78d749b2a6a4173e89e957d688de90202583b0fa.tar.gz
drakx-78d749b2a6a4173e89e957d688de90202583b0fa.tar.bz2
drakx-78d749b2a6a4173e89e957d688de90202583b0fa.tar.xz
drakx-78d749b2a6a4173e89e957d688de90202583b0fa.zip
(configure_eth_aliases) introduce it to autoconfigure all ethernet
aliases (MdkMove, harddrake service, drakconnect)
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 0dcebdcc5..6f6372e6f 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -191,4 +191,14 @@ want to use the default host name."),
1;
}
+# automatic net aliases configuration
+sub configure_eth_aliases() {
+ modules::remove_alias_regexp('^(wlan|eth)[0-9]*$');
+ modules::load_category('network/main|gigabit|usb');
+ foreach (detect_devices::getNet()) {
+ my $driver = c::getNetDriver($_) or next;
+ modules::add_alias($_, $driver);
+ }
+}
+
1;