From b71b703d8beb7229dd7b9fc535b28e2875b433d0 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 20 Apr 2005 15:30:22 +0000 Subject: unload ndiswrapper first so that the newly installed .inf files will be read redetect interfaces after ndiswrapper setup (so that the ndiswrapper module can be detected) --- perl-install/network/netconnect.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 24c848ba1..86d0ff2e3 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -1150,7 +1150,12 @@ notation (for example, 1.2.3.4).")), my $eth = find { $_->[0] eq $ntf_name } @all_cards; $ntf_name and modules::unload($eth->[1]); } - modules::load("ndiswrapper"); + #- unload ndiswrapper first so that the newly installed .inf files will be read + eval { modules::unload("ndiswrapper") }; + eval { modules::load("ndiswrapper") }; + + #- redetect interfaces (so that the ndiswrapper module can be detected) + $lan_detect->(); #- FIXME: move this somewhere in get_eth_cards, so that configure_eth_aliases correctly writes ndiswrapper #- find the first interface matching an ndiswrapper driver, try ethtool then sysfs -- cgit v1.2.1