diff options
-rwxr-xr-x | prepare-board.sh | 5 |
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 |