Marri Devender Rao | 8762fe1 | 2022-03-24 06:13:44 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # config: 1234 30 |
| 4 | # @brief: Log date and time |
| 5 | # |
| 6 | |
| 7 | . $DREPORT_INCLUDE/functions |
| 8 | |
| 9 | file_name="timedate.log" |
| 10 | |
| 11 | timedatectl="/usr/bin/timedatectl" |
Marri Devender Rao | 124d31f | 2022-04-11 08:09:40 -0500 | [diff] [blame^] | 12 | if [ -f $timedatectl ]; then |
Marri Devender Rao | 8762fe1 | 2022-03-24 06:13:44 -0500 | [diff] [blame] | 13 | add_cmd_output "echo $'\n[timedatectl]'" "$file_name" "timedatectl" |
| 14 | add_cmd_output "$timedatectl" "$file_name" "timedatectl" |
| 15 | fi |
| 16 | |