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