commit | ef0546d4f536f42a57af4c32bd37f7fd752d10c2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jan 20 16:03:29 2015 -0600 |
committer | Elliott Hughes <enh@google.com> | Tue Jan 20 16:03:29 2015 -0600 |
tree | 943862c91cdeeb926162145ee7c8548b2f1c30da | |
parent | 9d1d0ad1236d3c2d85e6c244d148f5ae8f589631 [diff] |
fix hwclock's rtc selection For systems using /dev/rtcN, /dev/rtc0 isn't necessarily the RTC that's used to provide the system time at boot time. We need to search for the RTC whose /sys/class/rtc/rtcN/hctosys contains "1".