Skip to content
Snippets Groups Projects
Commit e2fd1ada authored by John Crispin's avatar John Crispin
Browse files

base-files: For sysfixtime use hwclock if RTC available


On systems that have an RTC prefer it to the file-based time fixup (i.e.
use hwclock when there is a permanent clock instead of the faked up time
logic that is needed when there is not RTC).

We can't rely on hctosys kernel feature either as we're usually using
RTC as kernel modules which are usually being loaded after hctosys was
run, leading in the following error:

  hctosys: unable to open rtc device (rtc0)

Signed-off-by: default avatarDaniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>

SVN-Revision: 48661
parent badeccf6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment