Update timedatectl

This commit is contained in:
Alexandre
2024-06-10 11:11:53 +02:00
committed by GitHub
parent 9bd47a7d6e
commit 60996bcf1b

View File

@@ -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"
;;
*)