blob: d9c0ace460b96071843377e6e16cd3ffb1cea956 [file] [log] [blame]
Jayanth Othayothce910e92018-02-06 21:11:13 -06001#!/bin/bash
2#
3# config: 2 50
4# @brief: Print variables from Alt flash U-Boot environment.
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="Alt-Flash: U-Boot environment variables"
10env_config="/etc/alt_fw_env.config"
11
12if [ ! -f $env_config ]; then
13 log_error "$env_config does not exist"
14 exit
15fi
16
17
18file_name="alt-fw-printenv.log"
19command="fw_printenv -c $env_config"
20
21add_cmd_output "$command" "$file_name" "$desc"