summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2002-10-28 17:55:31 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2002-10-28 17:55:31 +0000
commitd40f89124c03783a9b8dd6c088ea41e9d65fc50a (patch)
tree66af618c44e1fb3c6dafeee160e262c184558adb /perl-install
parent7d7b0916501f9c4468eddf66e08e32ca95ef6176 (diff)
downloaddrakx-d40f89124c03783a9b8dd6c088ea41e9d65fc50a.tar
drakx-d40f89124c03783a9b8dd6c088ea41e9d65fc50a.tar.gz
drakx-d40f89124c03783a9b8dd6c088ea41e9d65fc50a.tar.bz2
drakx-d40f89124c03783a9b8dd6c088ea41e9d65fc50a.tar.xz
drakx-d40f89124c03783a9b8dd6c088ea41e9d65fc50a.zip
add sub winmodemConfigure
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/modem.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index 8d699707a..e5134fa47 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -57,4 +57,23 @@ sub pppConfig {
1;
}
+#- TODO: add choice between hcf/hsf
+sub winmodemConfigure {
+ my ($netc) = @_;
+ my $type;
+
+ foreach (keys %{$netc->{autodetect}{winmodem}}) {
+ my $temp;
+ /Hcf/ and $temp = "hcf";
+ /Hsf/ and $temp = "hsf";
+ $temp and $in->do_pkgs->what_provides("${temp}linmodem") and $type="${temp}linmodem";
+ }
+
+ $type || $in->ask_warn(_("Warning"), _("Your modem isn't supported by the system.
+Take a look at http://www.linmodems.org")) && return 1;
+ my $e = $in->ask_from_list(_("Title"), _("\"%s\" based winmodem detected, do you want to install needed software ?", $type), [_("Install rpm"), _("Do nothing")]) or return 0;
+ $e =~ /rpm/ ? $in->do_pkgs->install($type) : return 1;
+ 1;
+}
+
1;