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