diff options
Diffstat (limited to 'modules.d/slx-clock/scripts/ntp-sync.sh')
-rwxr-xr-x | modules.d/slx-clock/scripts/ntp-sync.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules.d/slx-clock/scripts/ntp-sync.sh b/modules.d/slx-clock/scripts/ntp-sync.sh index 81b4b5a3..a533353c 100755 --- a/modules.d/slx-clock/scripts/ntp-sync.sh +++ b/modules.d/slx-clock/scripts/ntp-sync.sh @@ -50,7 +50,11 @@ ntp_sync() { echo "Timesync finished" } -ntp_sync +if command -v systemd-cat > /dev/null; then + ntp_sync 2>&1 | systemd-cat +else + ntp_sync +fi true |