From ce910e960617d1be86f3b47a48f62f3daeb0ceba Mon Sep 17 00:00:00 2001 From: Jayanth Othayoth Date: Tue, 6 Feb 2018 21:11:13 -0600 Subject: dreport: Added altfwprintenv plugin Plugin used for collecting alt flash U-boot environment variables. Resolves openbmc/openbmc#2862 Change-Id: Ife6eec8e85640e1933771cd149c49f1579430473 Signed-off-by: Jayanth Othayoth --- tools/dreport.d/plugins.d/altfwprintenv | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tools/dreport.d/plugins.d/altfwprintenv diff --git a/tools/dreport.d/plugins.d/altfwprintenv b/tools/dreport.d/plugins.d/altfwprintenv new file mode 100644 index 0000000..d9c0ace --- /dev/null +++ b/tools/dreport.d/plugins.d/altfwprintenv @@ -0,0 +1,21 @@ +#!/bin/bash +# +# config: 2 50 +# @brief: Print variables from Alt flash U-Boot environment. +# + +. $DREPORT_INCLUDE/functions + +desc="Alt-Flash: U-Boot environment variables" +env_config="/etc/alt_fw_env.config" + +if [ ! -f $env_config ]; then + log_error "$env_config does not exist" + exit +fi + + +file_name="alt-fw-printenv.log" +command="fw_printenv -c $env_config" + +add_cmd_output "$command" "$file_name" "$desc" -- cgit v1.2.1