From 07fc0c8fd2124baddaab7997c58fcf7ac9801312 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 16 Sep 2005 16:47:51 +0000 Subject: some modem configuration programs modify modprobe.conf while drakconnect/the installer is loaded, workaround it --- perl-install/network/netconnect.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 23bc560b9..add23dbf3 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -482,8 +482,13 @@ Take a look at http://www.linmodems.org"), list => [ keys %{$net->{autodetect}{modem}}, N("Manual choice") ], } ]; }, complete => sub { - my $driver = $net->{autodetect}{modem}{$modem_name}{driver} or return 0; - !network::thirdparty::setup_device($in, 'rtc', $driver, $modem, qw(device)); + my $driver = $net->{autodetect}{modem}{$modem_name}{driver} or return 0; + #- some modem configuration programs modify modprobe.conf while we're loaded + #- so write it now and reload then + $modules_conf->write; + my $ret = network::thirdparty::setup_device($in, 'rtc', $driver, $modem, qw(device)); + $modules_conf->read if $ret; + !$ret; }, post => sub { return 'choose_serial_port' if $modem_name eq N("Manual choice"); -- cgit v1.2.1