summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-23 04:20:32 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-23 04:20:32 +0000
commit75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581 (patch)
tree58a6c6f77da5db3583d4b14d8b082f87cca7fe4d /perl-install
parent747e644ffd62c96ad9023dc4b09445d819c1d23b (diff)
downloaddrakx-backup-do-not-use-75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581.tar
drakx-backup-do-not-use-75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581.tar.gz
drakx-backup-do-not-use-75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581.tar.bz2
drakx-backup-do-not-use-75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581.tar.xz
drakx-backup-do-not-use-75ffa87f76eaeb0d0b6c803bb3a170bf9f3a8581.zip
install kernel packages for winmodems
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm12
1 files 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";
},
},