1#!/bin/bash 2# 3# config: 2 40 4# @brief: Print variables from primary flash U-Boot environment. 5# 6 7# shellcheck source=tools/dreport.d/include.d/functions 8. "$DREPORT_INCLUDE"/functions 9 10desc="PRI-Flash: U-Boot environment variables" 11env_config="/etc/fw_env.config" 12 13if [ ! -f $env_config ]; then 14 log_error "$env_config does not exist" 15 exit 16fi 17 18 19file_name="fw-printenv.log" 20command="fw_printenv -c $env_config" 21 22add_cmd_output "$command" "$file_name" "$desc" 23