Blame SOURCES/edac_utils-do_not_exit_if_dmidecode_isnt_found.patch

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