base-files: sysfixtime: Fix time on the fake RTC
authorYuan Tao <ty@wevs.org>
Mon, 14 Sep 2020 09:19:49 +0000 (17:19 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sun, 19 Feb 2023 12:04:59 +0000 (20:04 +0800)
commitfa08d900d4ec3bf0c2440b336a75f2b9bda29845
tree5002c0c2d319984d39202925d2bb87ba7782cf34
parent01262c921c7cbafc9a32b912e42c58982f47725c
base-files: sysfixtime: Fix time on the fake RTC

On some devices the chip has RTC but no battery save time.
This leads back to getting the wrong time
and skipping the check of the last file modification date.

This commit ensures that the file time is checked even
if the RTC exists.
which would ordinarily return an approbiate
system time used for e.g. certificate generation.

Tested-on: NanoPi R2S

Signed-off-by: Yuan Tao <ty@wevs.org>
package/base-files/files/etc/init.d/sysfixtime