fix hwclock's rtc selection
authorElliott Hughes <enh@google.com>
Tue, 20 Jan 2015 22:03:29 +0000 (16:03 -0600)
committerElliott Hughes <enh@google.com>
Tue, 20 Jan 2015 22:03:29 +0000 (16:03 -0600)
commitef0546d4f536f42a57af4c32bd37f7fd752d10c2
tree943862c91cdeeb926162145ee7c8548b2f1c30da
parent9d1d0ad1236d3c2d85e6c244d148f5ae8f589631
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".
toys/pending/hwclock.c