diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-07 14:05:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-07 14:05:39 +0000 |
commit | de19aec03758cf945cef63f5d697b0c226bbc85c (patch) | |
tree | d65bebf0781d3ad460c3819be459d8eac5f4edcd /perl-install | |
parent | 8cb21146557a468e517db3123d481e5715971c7a (diff) | |
download | drakx-de19aec03758cf945cef63f5d697b0c226bbc85c.tar drakx-de19aec03758cf945cef63f5d697b0c226bbc85c.tar.gz drakx-de19aec03758cf945cef63f5d697b0c226bbc85c.tar.bz2 drakx-de19aec03758cf945cef63f5d697b0c226bbc85c.tar.xz drakx-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.pm | 9 |
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 { |