[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] at reboot date is incorrect, apparently hwclock --hctosysisn't being executed



> I searched the archives but didn't see an answer.
> 
> I've got a Raq3 that when it reboots the time is way off.  If 
> I do a hwclock --hctosys that fixes it but I want the hwclock 
> --hctosys to happen at reboot.  I noticed that there is a 
> /etc/rc.d/rc.sysinit script that supposedly attempts to do 
> that but some reason isn't.  Any ideas as to what I need to 
> do?  It is importent that the time be right when the system 
> comes up because the machine hosts forums and if the time 
> gets adjusted later posts are out of order.


To try and spot the error with boot-up, plug a serial console in
(activate it via the pinhole on booting if needed) and watch the output,
there may be an error message appears about it.
I presume the entry you refer to in the sysinit is:
CLOCKDEF=""
if [ -x /sbin/hwclock ]; then
    CLOCKFLAGS="--hctosys"
    CLOCK=/sbin/hwclock
    $CLOCK --adjust
else
    CLOCKFLAGS="-a" 
    CLOCK=/sbin/clock
Fi

If so, just check that /sbin/hwclock is there, and not elsewhere.

Hopefully that'll get you somewhere.

Regards,

Andy
andy@xxxxxxxxxxxxxxxxxxxxx
HOWTO's PKGs and info --> http://www.raqpak.com/ <-- for Qube and Raq