[flashrom] [PATCH] don't print dmidecode shell error

Stefan Reinauer stefan.reinauer at coreboot.org
Thu Apr 7 18:40:01 CEST 2011


* Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de> [110406 09:53]:
> Am Dienstag, den 05.04.2011, 23:48 +0200 schrieb Stefan Reinauer:
> > > -static const char *dmidecode_command = "dmidecode";
> > > +static const char *dmidecode_command = "dmidecode 2>/dev/null";
> > Any opinions on a half line patch? :)
> 
> Not every OS has a unix command interpreter. This will break on DOS.
> Most likely fine if DOS is detected per ifdef.

Ok, how about this one?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_sh_dmidecode_not_found.diff
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20110407/a343c734/attachment.diff>


More information about the flashrom mailing list