aboutsummaryrefslogtreecommitdiff
path: root/prepare-board.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-06-06 15:13:40 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-06-06 15:13:40 +0000
commit7ba7ce99b82ace6416f6ffd72de1e4ade8d726a1 (patch)
tree85a1f9c13cab457e6c415a9b730daa9242e67e0b /prepare-board.sh
parent73a8dfe7ade423e8ca3581be15326f0765d53c6b (diff)
prepare-board.sh: Workaround old timedatectl
... not supporting timesync-status command. Change-Id: I9be4c1277902107b8f104b67535858d2a22cef00
Diffstat (limited to 'prepare-board.sh')
-rwxr-xr-xprepare-board.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/prepare-board.sh b/prepare-board.sh
index 4331e0e..80562c6 100755
--- a/prepare-board.sh
+++ b/prepare-board.sh
@@ -426,7 +426,10 @@ configure_ntp()
# Make sure time is accurate, and disable time updates to avoid
# intereference with benchmarking.
timedatectl set-ntp true
- timedatectl timesync-status
+ if timedatectl timesync-status; then
+ # Older timedatectl versions don't support timesync-status command
+ timedatectl status
+ fi
timedatectl set-ntp false
elif [ "$op" = "stop_board" ]; then
timedatectl set-ntp true