* Stefan Reinauer stefan.reinauer@coreboot.org [110329 21:55]:
Don't print the error
sh: dmidecode: not found
if dmidecode is not there.
Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org
Index: dmi.c
--- dmi.c (revision 1282) +++ dmi.c (working copy) @@ -75,7 +75,7 @@ };
#define DMI_COMMAND_LEN_MAX 260 -static const char *dmidecode_command = "dmidecode"; +static const char *dmidecode_command = "dmidecode 2>/dev/null";
static char *dmistrings[ARRAY_SIZE(dmidecode_names)];
Any opinions on a half line patch? :)