summaryrefslogtreecommitdiffstats
path: root/perl-install/network/modem.pm
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2002-10-10 15:28:14 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2002-10-10 15:28:14 +0000
commite9491d2b93aa715d67e8901a5dc240ad0617c0f4 (patch)
tree5c3a77c5879752442f55a5a38969c60bc93a3b50 /perl-install/network/modem.pm
parent9572c2b7be11fd83d7981c2c369f271c961254fb (diff)
downloaddrakx-backup-do-not-use-e9491d2b93aa715d67e8901a5dc240ad0617c0f4.tar
drakx-backup-do-not-use-e9491d2b93aa715d67e8901a5dc240ad0617c0f4.tar.gz
drakx-backup-do-not-use-e9491d2b93aa715d67e8901a5dc240ad0617c0f4.tar.bz2
drakx-backup-do-not-use-e9491d2b93aa715d67e8901a5dc240ad0617c0f4.tar.xz
drakx-backup-do-not-use-e9491d2b93aa715d67e8901a5dc240ad0617c0f4.zip
- move serial modem detection to detect_devices.pm
- add speedtouch USB detection - add winmodem detection
Diffstat (limited to 'perl-install/network/modem.pm')
-rw-r--r--perl-install/network/modem.pm33
1 files changed, 1 insertions, 32 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index 9929d23ab..b075453ba 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -10,7 +10,7 @@ use vars qw(@ISA @EXPORT);
use MDK::Common::Globals "network", qw($in $prefix);
@ISA = qw(Exporter);
-@EXPORT = qw(pppConfig modem_detect_backend);
+@EXPORT = qw(pppConfig);
sub configure{
my ($netcnx, $mouse, $netc) = @_;
@@ -56,36 +56,5 @@ sub pppConfig {
$netc->{$_}='ppp0' foreach 'NET_DEVICE', 'NET_INTERFACE';
1;
}
-#-AT&F&O2B40
-#- DialString=ATDT0231389595((
-
-#- modem_detect_backend : detects modem on serial ports and fills the infos in $modem : detects only one card
-#- input
-#- $modem
-#- $mouse : facultative, hash containing device to exclude not to test mouse port : ( device => /ttyS[0-9]/ )
-#- output:
-#- $modem->{device} : device where the modem were detected
-sub modem_detect_backend {
- my ($modem, $mouse) = @_;
- $mouse ||= {};
- $mouse->{device} = readlink "/dev/mouse";
- my $serdev = arch() =~ /ppc/ ? "macserial" : "serial";
- eval { modules::load($serdev) };
-
- detect_devices::probeSerialDevices();
- foreach ('modem', map { "ttyS$_" } (0..7)) {
- next if $mouse->{device} =~ /$_/;
- next unless -e "/dev/$_";
- detect_devices::hasModem("/dev/$_") and $modem->{device} = $_, last;
- }
-
- #- add an alias for macserial on PPC
- modules::add_alias('serial', $serdev) if (arch() =~ /ppc/ && $modem->{device});
- my @devs = detect_devices::pcmcia_probe();
- foreach (@devs) {
- $_->{type} =~ /serial/ and $modem->{device} = $_->{device};
- }
-
-}
1;