This is from /etc/rc.d/rc.S:
Code:
# Check for a broken motherboard RTC clock (where ioports for rtc are
# unknown) to prevent hwclock causing a hang:
if ! grep -q -w rtc /proc/ioports ; then
CLOCK_OPT="--directisa"
fi
In my PC the RTC device is named rtc0:
Code:
$ grep rtc /proc/ioports
0070-0071 : rtc0
So the --directisa option is passed to hwclock (while it should not).
From reading the hwclock manpage I think the --directisa option is not needed anymore in the current version:
Code:
--directisa
This option is meaningful only on an ISA machine or an Alpha (which implements
enough of ISA to be, roughly speaking, an ISA machine for hwclock's purposes).
For other machines, it has no effect. This option tells hwclock to use explicit
I/O instructions to access the Hardware Clock. Without this option, hwclock will
try to use the /dev/rtc device (which it assumes to be driven by the RTC device
driver). If it is unable to open the device (for reading), it will use the
explicit I/O instructions anyway.
But if you think the test should stay I suggest to change it to something like this:
Code:
grep -qw 'rtc0\?' /proc/ioports