summaryrefslogtreecommitdiffstats
path: root/perl-install/network/modem.pm
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-09-04 13:36:45 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-09-04 13:36:45 +0000
commit4adb973e27464a1abf50bb84eccc20c67d0aa1e5 (patch)
tree42a6ba0d38833043e4793a55aca49c9d32de18f1 /perl-install/network/modem.pm
parentf954a55773a5edd7ea815699218575eea41f4869 (diff)
downloaddrakx-4adb973e27464a1abf50bb84eccc20c67d0aa1e5.tar
drakx-4adb973e27464a1abf50bb84eccc20c67d0aa1e5.tar.gz
drakx-4adb973e27464a1abf50bb84eccc20c67d0aa1e5.tar.bz2
drakx-4adb973e27464a1abf50bb84eccc20c67d0aa1e5.tar.xz
drakx-4adb973e27464a1abf50bb84eccc20c67d0aa1e5.zip
fix #5242, don't go back to main menu if winmodem isn't found
Diffstat (limited to 'perl-install/network/modem.pm')
-rw-r--r--perl-install/network/modem.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index a291e6dcf..c987c069b 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -246,7 +246,7 @@ sub winmodemConfigure {
my %relocations = (ltmodem => $in->do_pkgs->check_kernel_module_packages('ltmodem'));
my $type;
- $netc->{autodetect}{winmodem} or ($in->ask_warn(N("Warning"), N("You don't have any winmodem")) ? return 0 : $in->exit(0));
+ $netc->{autodetect}{winmodem} or ($in->ask_warn(N("Warning"), N("You don't have any winmodem")) ? return 1 : $in->exit(0));
foreach (keys %{$netc->{autodetect}{winmodem}}) {
/Hcf/ and $type = "hcfpcimodem";
@@ -256,7 +256,7 @@ sub winmodemConfigure {
}
$type or ($in->ask_warn(N("Warning"), N("Your modem isn't supported by the system.
-Take a look at http://www.linmodems.org")) ? return 0 : $in->exit(0));
+Take a look at http://www.linmodems.org")) ? return 1 : $in->exit(0));
my $e = $in->ask_from_list(N("Title"), N("\"%s\" based winmodem detected, do you want to install needed software ?", $type), [N("Install rpm"), N("Do nothing")]) or return 0;
if ($e =~ /rpm/) {
if ($in->do_pkgs->install($relocations{$type} ? @{$relocations{$type}} : $type)) {