mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 08:05:57 +02:00
Update timedatectl
This commit is contained in:
@@ -29,12 +29,13 @@ case "$1" in
|
|||||||
"set-ntp")
|
"set-ntp")
|
||||||
case "$2" in
|
case "$2" in
|
||||||
"false")
|
"false")
|
||||||
|
sudo systemctl stop systemd-timesyncd
|
||||||
sudo systemctl disable systemd-timesyncd
|
sudo systemctl disable systemd-timesyncd
|
||||||
echo "NTP disabled"
|
echo "NTP disabled"
|
||||||
;;
|
;;
|
||||||
"true")
|
"true")
|
||||||
sudo systemctl enable systemd-timesyncd
|
|
||||||
sudo systemctl start systemd-timesyncd
|
sudo systemctl start systemd-timesyncd
|
||||||
|
sudo systemctl enable systemd-timesyncd
|
||||||
echo "NTP enabled"
|
echo "NTP enabled"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user