blob: 69a553252a2d20ce3088f42265d1747a359d46a1 [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
Marri Devender Rao89d648e2022-04-14 01:45:44 -05007. "$DREPORT_INCLUDE"/functions
Jayanth Othayothce910e92018-02-06 21:11:13 -06008
9desc="Alt-Flash: U-Boot environment variables"
10env_config="/etc/alt_fw_env.config"
11
12if [ ! -f $env_config ]; then
Jayanth Othayothce910e92018-02-06 21:11:13 -060013 exit
14fi
15
16
17file_name="alt-fw-printenv.log"
18command="fw_printenv -c $env_config"
19
20add_cmd_output "$command" "$file_name" "$desc"