Blame SOURCES/edac_utils-do_not_exit_if_dmidecode_isnt_found.patch

20c682
commit 7629ebb853687afe144987d301d77a4ff99c65b5
20c682
Author: Mark A. Grondona <mgrondona@llnl.gov>
20c682
Date:   Mon Sep 28 17:49:15 2009 +0000
20c682
20c682
    Don't make missing dmidecode a fatal error.
20c682
20c682
diff --git a/src/util/edac-ctl.in b/src/util/edac-ctl.in
20c682
index 5bab397..e0c169e 100755
20c682
--- a/src/util/edac-ctl.in
20c682
+++ b/src/util/edac-ctl.in
20c682
@@ -30,7 +30,7 @@ use Getopt::Long;
20c682
 
20c682
 my $prefix      = "@prefix@";
20c682
 my $sysconfdir  = "@sysconfdir@";
20c682
-my $dmidecode   = find_prog ("dmidecode") or exit (1);
20c682
+my $dmidecode   = find_prog ("dmidecode");
20c682
 my $modprobe    = find_prog ("modprobe")  or exit (1);
20c682
 
20c682
 my %conf        = ();
20c682
@@ -392,7 +392,7 @@ sub find_prog
20c682
     for my $dir ("/sbin", "/usr/sbin", split ':', $ENV{PATH}) {
20c682
         return "$dir/$file" if -x "$dir/$file";
20c682
     }
20c682
-    log_error ("Failed to find $file in PATH\n");
20c682
+    # log_error ("Failed to find $file in PATH\n");
20c682
     return "";
20c682
 }
20c682