diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-06 16:53:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-06 16:53:52 +0000 |
commit | 78d749b2a6a4173e89e957d688de90202583b0fa (patch) | |
tree | 750ac550c1b10fabe32bd6a3e80bec79dcd07b24 /perl-install | |
parent | 28e50c659233b8f8ff27b65579de66412bab92fb (diff) | |
download | drakx-backup-do-not-use-78d749b2a6a4173e89e957d688de90202583b0fa.tar drakx-backup-do-not-use-78d749b2a6a4173e89e957d688de90202583b0fa.tar.gz drakx-backup-do-not-use-78d749b2a6a4173e89e957d688de90202583b0fa.tar.bz2 drakx-backup-do-not-use-78d749b2a6a4173e89e957d688de90202583b0fa.tar.xz drakx-backup-do-not-use-78d749b2a6a4173e89e957d688de90202583b0fa.zip |
(configure_eth_aliases) introduce it to autoconfigure all ethernet
aliases (MdkMove, harddrake service, drakconnect)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/network/ethernet.pm | 10 |
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; |