blob: 29453245a7ac03c4d233725b12f3d6505197b6bd [file] [log] [blame]
#!/bin/bash
#
# config: 2 40
# @brief: Print variables from primary flash U-Boot environment.
#
. $DREPORT_INCLUDE/functions
desc="PRI-Flash: U-Boot environment variables"
env_config="/etc/fw_env.config"
if [ ! -f $env_config ]; then
log_error "$env_config does not exist"
exit
fi
file_name="fw-printenv.log"
command="fw_printenv -c $env_config"
add_cmd_output "$command" "$file_name" "$desc"