Changeset 5691
- Timestamp:
- 03/20/09 15:08:43 (4 years ago)
- Files:
-
- 1 modified
-
i2c-tools/trunk/eeprom/decode-dimms (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/trunk/eeprom/decode-dimms
r5690 r5691 1616 1616 sub get_dimm_list 1617 1617 { 1618 my $dir;1618 my ($dir, $file, @files); 1619 1619 1620 1620 if ($use_sysfs) { … … 1624 1624 } 1625 1625 1626 if (-d $dir) { 1627 return split(/\s+/, `ls $dir`); 1626 if (opendir(local *DIR, $dir)) { 1627 while (defined($file = readdir(DIR))) { 1628 next if $file =~ m/^\./; 1629 push @files, $file; 1630 } 1631 close(DIR); 1632 return sort @files; 1628 1633 } elsif (! -d '/sys/module/eeprom') { 1629 1634 print "No EEPROM found, are you sure the eeprom module is loaded?\n";
