> Please also note that the real time clock is important for knowing
> if
> the DHCP lease is still valid.
> Since most routers don't have a hardware RTC, there is no way to
> know
> it the DHCP lease is still valid before you get WAN connectivity to
> update the time with NTP.

in our special openwrt-build we have a function like

time_seems_correct()

which simply return 1 if the time is older or much newer than the builddate of 
the firmware-image. (during build we write the unixtimestamp to /etc/buildtime, 
but it is also possible to use 'uname -a')

thanks for pointing at this problem. something interesting:
i have seen many routers, which have a date of year 2027
or 2021 after booting...

bye, Bastian...

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to