On my system ntp settings from LibreElec doesn't work and I use this script:
This script ping server 8.8.8.8 until 1st success packet during 10 seconds. It's enough for my system.
You can change the time from 10 to 60 seconds and perform required action after.