File: 01-decode-dimms-no-eeprom.diff

package info (click to toggle)
i2c-tools 4.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: perl: 3,235; ansic: 3,152; makefile: 52; sh: 19; python: 17
file content (20 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- i2c-tools-3.1.1.orig/eeprom/decode-dimms
+++ i2c-tools-3.1.1/eeprom/decode-dimms
@@ -1826,9 +1826,14 @@ sub get_dimm_list
 		close(DIR);
 	}
 
-	if (!$opened) {
-		print STDERR "No EEPROM found, try loading the eeprom, at24 or ee1004 module\n";
-		exit;
+	if (!@files) {
+		if (!$opened) {
+			print STDERR "No EEPROM found, try loading the eeprom, at24 or or ee1004 module\n";
+			exit;
+		} else {
+			print STDERR "No EEPROM found, the kernel probably does not support your hardware.\n";
+			exit;
+		}
 	}
 
 	return sort { $a->{file} cmp $b->{file} } @files;