aboutsummaryrefslogtreecommitdiff
path: root/prepare-board.sh
diff options
context:
space:
mode:
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