Jayanth Othayoth | 8e29044 | 2018-02-05 04:58:28 -0600 | [diff] [blame] | 1 | #!/bin/bash |
2 | # | ||||
3 | # config: 2 40 | ||||
4 | # @brief: Print variables from primary flash U-Boot environment. | ||||
5 | # | ||||
6 | |||||
7 | . $DREPORT_INCLUDE/functions | ||||
8 | |||||
9 | desc="PRI-Flash: U-Boot environment variables" | ||||
10 | env_config="/etc/fw_env.config" | ||||
11 | |||||
12 | if [ ! -f $env_config ]; then | ||||
13 | log_error "$env_config does not exist" | ||||
14 | exit | ||||
15 | fi | ||||
16 | |||||
17 | |||||
18 | file_name="fw-printenv.log" | ||||
19 | command="fw_printenv -c $env_config" | ||||
20 | |||||
21 | add_cmd_output "$command" "$file_name" "$desc" |