and https://openwrt.org/docs/guide-user/services/ntp/client-server
NTP never updates time on boot by itself.
But if i go system -genegral setting and cklic sync with NTP-server button all good it got correct time
where do i dig up
using comand like ntpd -q -p ptbtime1.ptb.de
also does sync the time
i turned on dnsmsq and all works correctly now on start ,but anyway if dnsmsq disabled i still can syncronise using command but not after start but 30 seconds later
There is no logical correlation between the firewall and dnsmasq and ntp. If you run OpenWrt as switch or dumb access point firmware you can build the firmware without the firewall and/or dnsmasq package and the ntp client works anyway since it is in the busybox core package.
But if you don’t have dnsmasq and no other dns masquerading system in your network and firewall to be precise, then pretty much nothing in the network will have internet access.
I mentioned cronjob but looking at my notes the issue seemed to involve a hotplug not a cronjob. This was about ~4 months ago building from 23.05 SNAPSHOT.
I just compiled an image for a dumb AP from 23.05 SNAPSHOT without dnsmasq and ntp is now updating at boot time. So, I can’t recreate the problem.
As for OP’s issue, it’s odd that their script was able to update ntp with dnsmasq disabled and that re-enabling dnsmasq solved the problem. It sounds like what I was facing.