Blame SOURCES/lm_sensors-3.4.0-alternative-architectures-warning.patch

62a51f
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
62a51f
index 005bbd0..737be98 100755
62a51f
--- a/prog/detect/sensors-detect
62a51f
+++ b/prog/detect/sensors-detect
62a51f
@@ -2877,7 +2877,15 @@ sub initialize_cpu_list
62a51f
 sub print_cpu_info
62a51f
 {
62a51f
 	my $cpu = $cpu[0];
62a51f
-	print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n";
62a51f
+	if (!exists $cpu->{'model name'} ||  !exists $cpu->{'cpu family'} || !exists $cpu->{'model'}){
62a51f
+	    print "**********\n";
62a51f
+            print "Your processor's architecture is not yet supported. Beware that sensors-detect might not work properly!\n";
62a51f
+	    print "**********\n";
62a51f
+        }
62a51f
+        else{
62a51f
+	    print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n";
62a51f
+        }
62a51f
+
62a51f
 }
62a51f
 
62a51f
 # @i2c_adapters is a list of references to hashes, one hash per I2C/SMBus