From 60996bcf1ba04bd418dfa5f2035b0a993329bd06 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:11:53 +0200 Subject: [PATCH] Update timedatectl --- birdnet-pi/rootfs/helpers/timedatectl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/helpers/timedatectl b/birdnet-pi/rootfs/helpers/timedatectl index 3f8f0aa40..5a7398b65 100644 --- a/birdnet-pi/rootfs/helpers/timedatectl +++ b/birdnet-pi/rootfs/helpers/timedatectl @@ -29,12 +29,13 @@ case "$1" in "set-ntp") case "$2" in "false") + sudo systemctl stop systemd-timesyncd sudo systemctl disable systemd-timesyncd echo "NTP disabled" ;; "true") - sudo systemctl enable systemd-timesyncd sudo systemctl start systemd-timesyncd + sudo systemctl enable systemd-timesyncd echo "NTP enabled" ;; *)