2010-10-26 08:31:54 +00:00
|
|
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
Date: Sat, 12 Jun 2010 22:13:53 +0400
|
2014-09-11 18:48:16 +00:00
|
|
|
Subject: [PATCH] Use dmidecode path defined at configure stage
|
2010-10-26 08:31:54 +00:00
|
|
|
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
|
|
|
|
diff --git a/dmi.c b/dmi.c
|
2014-09-11 18:48:16 +00:00
|
|
|
index a7a9a61..093b9a2 100644
|
2010-10-26 08:31:54 +00:00
|
|
|
--- a/dmi.c
|
|
|
|
+++ b/dmi.c
|
2014-09-11 18:48:16 +00:00
|
|
|
@@ -294,7 +294,7 @@ out:
|
|
|
|
#else /* CONFIG_INTERNAL_DMI */
|
2010-10-26 08:31:54 +00:00
|
|
|
|
2014-09-11 18:48:16 +00:00
|
|
|
#define DMI_COMMAND_LEN_MAX 300
|
2010-10-26 08:31:54 +00:00
|
|
|
-static const char *dmidecode_command = "dmidecode";
|
|
|
|
+static const char *dmidecode_command = DMIDECODE_PATH;
|
|
|
|
|
2014-09-11 18:48:16 +00:00
|
|
|
static char *get_dmi_string(const char *string_name)
|
|
|
|
{
|