From 1e8ae805e03d2c4fe038d25185c9d05f25f9d314 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 19 Apr 2005 16:04:53 +0000 Subject: do not crash if modprobe fails --- perl-install/network/tools.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index 9c5ea152c..84b35a70b 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -305,9 +305,9 @@ sub ndiswrapper_available_drivers() { } sub ndiswrapper_setup() { - modules::unload("ndiswrapper"); + eval { modules::unload("ndiswrapper") }; #- unload ndiswrapper first so that the newly installed .inf files will be read - modules::load("ndiswrapper"); + eval { modules::load("ndiswrapper") }; #- 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