Marri Devender Rao | d78c4ef | 2022-03-30 04:41:39 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # config: 234 40 |
| 4 | # @brief: Collect GUARD record information. |
| 5 | # |
| 6 | |
| 7 | . $DREPORT_INCLUDE/functions |
| 8 | |
| 9 | desc="GUARD Records" |
| 10 | guard_part_file="/media/hostfw/running/GUARD" |
| 11 | |
| 12 | # Check file is present and not empty. |
| 13 | if [ -e "$guard_part_file" ]; then |
| 14 | add_copy_file "$guard_part_file" "GUARD partition" |
| 15 | fi |
| 16 | |
| 17 | # collect guarded list |
| 18 | guard_log_file=guard.log |
| 19 | if [ -e "/usr/bin/guard" ]; then |
| 20 | add_cmd_output "echo $'\n[Guard List]'" "$guard_log_file" "guard" |
| 21 | add_cmd_output "/usr/bin/guard -l" "$guard_log_file" "guard -l" |
| 22 | |
| 23 | add_cmd_output "echo $'\n[Guard resolved records]'" "$guard_log_file" "guard" |
| 24 | add_cmd_output "/usr/bin/guard -a" "$guard_log_file" "guard -a" |
| 25 | |
| 26 | add_cmd_output "echo $'\n[Guard ephemeral records]'" "$guard_log_file" "guard" |
| 27 | add_cmd_output "/usr/bin/guard -e" "$guard_log_file" "guard -e" |
| 28 | fi |