From d60215ea271cf171dd6292529a4c459e9148d883 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 6 Sep 2000 14:42:37 +0000 Subject: no_comment --- perl-install/modules.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 2bcab65e6..51b51d4f7 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -572,7 +572,7 @@ sub pcmcia_need_config($) { sub get_pcmcia_devices($$) { my ($pcic) = @_; - my (@devs, $module, $desc, $type, $device); + my (@devs, $desc); #- try to setup pcmcia if cardmgr is not running. if (pcmcia_need_config($pcic)) { @@ -597,11 +597,8 @@ sub get_pcmcia_devices($$) { foreach (cat_("/var/run/stab")) { $desc = $1 if /^Socket\s+\d+:\s+(.*)/; - ($type, $module, $device) = ($1, $2, $3) if /^\d+\s+(\S+)\s+(\S+)\s+\S+\s+(\S+)/; - if ($desc && $module) { - push @devs, { description => $desc, driver => $module, type => $type, device => $device }; - $desc = $module = undef; - } + my (undef, $type, $module, undef, $device) = split; + push @devs, { description => $desc, driver => $module, type => $type, device => $device } if $module; } @devs; } -- cgit v1.2.1