1*8e29044fSJayanth Othayoth#!/bin/bash
2*8e29044fSJayanth Othayoth#
3*8e29044fSJayanth Othayoth# config: 2 40
4*8e29044fSJayanth Othayoth# @brief: Print variables from primary flash U-Boot environment.
5*8e29044fSJayanth Othayoth#
6*8e29044fSJayanth Othayoth
7*8e29044fSJayanth Othayoth. $DREPORT_INCLUDE/functions
8*8e29044fSJayanth Othayoth
9*8e29044fSJayanth Othayothdesc="PRI-Flash: U-Boot environment variables"
10*8e29044fSJayanth Othayothenv_config="/etc/fw_env.config"
11*8e29044fSJayanth Othayoth
12*8e29044fSJayanth Othayothif [ ! -f $env_config ]; then
13*8e29044fSJayanth Othayoth    log_error "$env_config does not exist"
14*8e29044fSJayanth Othayoth    exit
15*8e29044fSJayanth Othayothfi
16*8e29044fSJayanth Othayoth
17*8e29044fSJayanth Othayoth
18*8e29044fSJayanth Othayothfile_name="fw-printenv.log"
19*8e29044fSJayanth Othayothcommand="fw_printenv -c $env_config"
20*8e29044fSJayanth Othayoth
21*8e29044fSJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
22