summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-16 11:03:31 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-16 11:03:31 +0000
commitf251b3b195f51eb274e1634c131e284110c8acbc (patch)
tree01f1b06d2e0bc0eec23715203beebfcb238c7ccc
parent2ed679c4b1bf57fba5a135d171fd06c5a2fcffdb (diff)
downloaddrakx-backup-do-not-use-f251b3b195f51eb274e1634c131e284110c8acbc.tar
drakx-backup-do-not-use-f251b3b195f51eb274e1634c131e284110c8acbc.tar.gz
drakx-backup-do-not-use-f251b3b195f51eb274e1634c131e284110c8acbc.tar.bz2
drakx-backup-do-not-use-f251b3b195f51eb274e1634c131e284110c8acbc.tar.xz
drakx-backup-do-not-use-f251b3b195f51eb274e1634c131e284110c8acbc.zip
warn that we only support kernel 2.4.x for pci modems
-rw-r--r--perl-install/network/netconnect.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 4f7673a56..a2e788444 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -452,6 +452,12 @@ Take a look at http://www.linmodems.org"),
[ { label => N("Modem"), type => "list", val => \$modem_name, allow_empty_list => 1,
list => [ keys %{$netc->{autodetect}{modem}}, N("Manual choice") ], } ],
},
+ complete => sub {
+ if ($netc->{autodetect}{modem}{$modem_name}{driver} =~ /^(LT|H[cs]f):/) {
+ $in->ask_warn(N("Warning"), N("Sorry, we support only 2.4 and above kernels."));
+ }
+ return 0;
+ },
post => sub {
$modem ||= $netcnx->{modem} ||= {};;
return 'choose_serial_port' if $modem_name eq N("Manual choice");