diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-17 13:19:22 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-17 13:19:22 +0000 |
commit | 5b280812f53c7c6c093c3ba37644dae040b3e5ab (patch) | |
tree | 6848dc229ab7b82847d6ef314ff33336738626f8 /perl-install/network/netconnect.pm | |
parent | dc9f6d6bddad0abd9874988d9878c7ebeb0a3a99 (diff) | |
download | drakx-backup-do-not-use-5b280812f53c7c6c093c3ba37644dae040b3e5ab.tar drakx-backup-do-not-use-5b280812f53c7c6c093c3ba37644dae040b3e5ab.tar.gz drakx-backup-do-not-use-5b280812f53c7c6c093c3ba37644dae040b3e5ab.tar.bz2 drakx-backup-do-not-use-5b280812f53c7c6c093c3ba37644dae040b3e5ab.tar.xz drakx-backup-do-not-use-5b280812f53c7c6c093c3ba37644dae040b3e5ab.zip |
use network::ethernet::get_eth_categories() when needed
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r-- | perl-install/network/netconnect.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 1999fbec5..c3188710e 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -21,8 +21,8 @@ sub detect { $auto_detect->{isdn} = network::isdn::detect_backend($modules_conf); }, lan => sub { # ethernet - modules::load_category($modules_conf, 'network/main|gigabit|usb'); require network::ethernet; + modules::load_category($modules_conf, network::ethernet::get_eth_categories()); $auto_detect->{lan} = { map { $_->[0] => $_->[1] } network::ethernet::get_eth_cards($modules_conf) }; }, adsl => sub { @@ -125,7 +125,8 @@ sub real_main { my $lan_detect = sub { detect($modules_conf, $netc->{autodetect}, 'lan'); - modules::interactive::load_category($in, $modules_conf, 'network/main|gigabit|pcmcia|usb|wireless', !$::expert, 0); + require network::ethernet; + modules::interactive::load_category($in, $modules_conf, network::ethernet::get_eth_categories(), !$::expert, 0); @all_cards = network::ethernet::get_eth_cards($modules_conf); %eth_intf = network::ethernet::get_eth_cards_names($modules_conf, @all_cards); require list_modules; @@ -829,7 +830,8 @@ You can find a driver on http://eciadsl.flashtux.org/"), post => sub { $ethntf = $intf->{$ntf_name} ||= { DEVICE => $ntf_name }; if ($ntf_name eq "Manually load a driver") { - modules::interactive::load_category__prompt($in, $modules_conf, 'network/main|gigabit|pcmcia|usb|wireless'); + require network::ethernet; + modules::interactive::load_category__prompt($in, $modules_conf, network::ethernet::get_eth_categories()); return 'lan'; } $::isInstall && $netc->{NET_DEVICE} eq $ethntf->{DEVICE} ? 'lan_alrd_cfg' : 'lan_protocol'; @@ -1339,7 +1341,7 @@ sub start_internet { my ($o) = @_; init_globals($o); #- give a chance for module to be loaded using kernel-BOOT modules... - $::isStandalone or modules::load_category($o->{modules_conf}, 'network/main|gigabit|usb'); + $::isStandalone or modules::load_category($o->{modules_conf}, 'network/*'); connect_backend($o->{netc}); } |