summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 9a591cbf7..0cb526b7e 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -636,9 +636,12 @@ sub get_pcmcia_devices {
my (@devs, $desc);
foreach (cat_("/var/run/stab")) {
- $desc = $1 if /^Socket\s+\d+:\s+(.*)/;
- my (undef, $type, $module, undef, $device) = split;
- push @devs, { description => $desc, driver => $module, type => $type, device => $device } if $module;
+ if (/^Socket\s+\d+:\s+(.*)/) {
+ $desc = $1;
+ } else {
+ my (undef, $type, $module, undef, $device) = split;
+ push @devs, { description => $desc, driver => $module, type => $type, device => $device };
+ }
}
@devs;
}