#!/usr/bin/env bash | |
# | |
# config: 1234 30 | |
# @brief: Log date and time | |
# | |
. $DREPORT_INCLUDE/functions | |
file_name="timedate.log" | |
timedatectl="/usr/bin/timedatectl" | |
if [ -f $timedatectl ]; then | |
add_cmd_output "echo $'\n[timedatectl]'" "$file_name" "timedatectl" | |
add_cmd_output "$timedatectl" "$file_name" "timedatectl" | |
fi | |