From 78d749b2a6a4173e89e957d688de90202583b0fa Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 6 Nov 2003 16:53:52 +0000 Subject: (configure_eth_aliases) introduce it to autoconfigure all ethernet aliases (MdkMove, harddrake service, drakconnect) --- perl-install/network/ethernet.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'perl-install/network') 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; -- cgit v1.2.1