Hi
Why if I will disable internet connection on my router and reboot it, it shows incorrect time (0:00)? But after I connect it to internet it immediately shows correct time.
Hi
Why if I will disable internet connection on my router and reboot it, it shows incorrect time (0:00)? But after I connect it to internet it immediately shows correct time.
Most if not all GL iNet routers do not have a battery clock so it needs to get to the internet to get the correct time. For the initial time before it attaches to the internet, it looks for the latest timestamp in the files in /etc
I believe it sets the time based on the firmware’s compilation time.
I reboot one of my ar300m routers, that is being used as a VPN server, daily using something similar to this:
30 10 * * * sleep 70 && touch /etc/banner && sync && reboot
The startup time that the router starts with, changes everyday to the timestamp I set on the file /etc/banner using the touch command. The sleep 70 && touch /etc/banner is to make sure the router time is set to be after the reboot time, or it is possible to get the router stuck in a reboot loop.
See:
Once the WAN comes up, the time on the router jumps forward to the correct time.
Thanks for sharing the details.