File scp_save_results.patch of Package firmwarekit
---
Makefile | 2
biostest.h | 10 +++-
main.c | 37 ++++++++++++++-
tests.c | 7 ++
ui.c | 35 ++++++++++----
6 files changed, 228 insertions(+), 13 deletions(-)
Index: firmwarekit/main.c
===================================================================
--- firmwarekit.orig/main.c
+++ firmwarekit/main.c
@@ -175,6 +175,7 @@ static void parse_kernel_cmdline(void)
int main(int argc, char **argv)
{
+ int ret;
/* initialisation of core support routines */
parse_kernel_cmdline();
@@ -191,6 +192,11 @@ int main(int argc, char **argv)
* (implemented in serial.c) */
init_serial(use_serial, tty, serial_speed);
+ ret = system ("/usr/sbin/hwinfo --bios --pci --block --usb "
+ "--log=/var/log/firmwarekit/hwinfo.txt");
+ if (ret)
+ fprintf (stderr, "hwinfo did not succeed\n");
+
/* get and parse demsg for useful info
* (implemented in dmesg.c) */
get_dmesg_buffer();