From 75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 23 Sep 2004 04:20:32 +0000 Subject: install kernel packages for winmodems --- perl-install/network/netconnect.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index e150a482d..d33166a2f 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -516,12 +516,14 @@ Take a look at http://www.linmodems.org"), $driver =~ /^LT:/ and $type = "ltmodem"; #- we need a better agreement to use list_modules::category2modules('network/slmodem') member($driver, qw(slamr slusb)) and $type = "slmodem"; - $type = undef if !($type && (-f $pkgs2path{$type} || $in->do_pkgs->ensure_is_installed_if_available($type, $pkgs2path{$type}))); - $modem->{device} = $devices{$type} || '/dev/modem' if $type; # automatically linked by /etc/devfs/conf entry + if ($type && (my $packages = $in->do_pkgs->check_kernel_module_packages("$type-kernel", if_(! -f $pkgs2path{$type}, $type)))) { + $in->do_pkgs->install(@$packages); + $modem->{device} = $devices{$type} || '/dev/modem'; + return "ppp_provider"; + } } - - #- fallback to modem configuration (beware to never allow test it). - return $type ? "ppp_provider" : "no_supported_winmodem"; + + return "no_supported_winmodem"; }, }, -- cgit v1.2.1