summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-11-07 14:05:39 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-11-07 14:05:39 +0000
commitde19aec03758cf945cef63f5d697b0c226bbc85c (patch)
treed65bebf0781d3ad460c3819be459d8eac5f4edcd /perl-install
parent8cb21146557a468e517db3123d481e5715971c7a (diff)
downloaddrakx-backup-do-not-use-de19aec03758cf945cef63f5d697b0c226bbc85c.tar
drakx-backup-do-not-use-de19aec03758cf945cef63f5d697b0c226bbc85c.tar.gz
drakx-backup-do-not-use-de19aec03758cf945cef63f5d697b0c226bbc85c.tar.bz2
drakx-backup-do-not-use-de19aec03758cf945cef63f5d697b0c226bbc85c.tar.xz
drakx-backup-do-not-use-de19aec03758cf945cef63f5d697b0c226bbc85c.zip
- harddrake : don't display modem when there're none
- getModem() : o simplify o remove unused variables - getSerialModem() : indent
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index ed5501fdd..5ea0e8943 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -387,16 +387,13 @@ sub getSerialModem {
#- add an alias for macserial on PPC
modules::add_alias('serial', $serdev) if arch() =~ /ppc/ && $modem->{device};
my @devs = pcmcia_probe();
- foreach (@devs) {
- $_->{type} =~ /serial/ and $modem->{device} = $_->{device};
- }
+ foreach (@devs) { $_->{type} =~ /serial/ and $modem->{device} = $_->{device} }
+ grep { if_(defined $_->{device}, $_) } @devs;
}
sub getModem() {
my @pci_modems = grep { $_->{driver} =~ /www.linmodems.org/ } probeall(0);
- my $serial_modem = {};
- getSerialModem($serial_modem);
- $serial_modem, @pci_modems;
+ getSerialModem({}), @pci_modems;
}
sub getSpeedtouch {