xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/timedate (revision 8762fe1cf124e3bff9b12abf6397f65662d765ec)
1#!/usr/bin/env bash
2#
3# config: 1234 30
4# @brief: Log date and time
5#
6
7. $DREPORT_INCLUDE/functions
8
9file_name="timedate.log"
10
11timedatectl="/usr/bin/timedatectl"
12if [ -f $timedatectl]; then
13    add_cmd_output "echo $'\n[timedatectl]'" "$file_name" "timedatectl"
14    add_cmd_output "$timedatectl" "$file_name" "timedatectl"
15fi
16
17