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

Re: clock in /etc/init.d/boot ?



>>
>> Any ideas how to fix it?
>>
>
>ln -s /sbin/hwclock /sbin/clock

Nope, that's not enough.  The behavior of the program has changed
slightly.

"hwclock -a" (--adjust) only tweaks the RTC, it doesn't use the RTC to
set the system time like it used to.  You need to invoke it as "hwclock
--hctosys" to do that.  So hack /etc/init.d/boot as follows:

Before:
#
# Set and adjust the CMOS clock.
#
if [ ! -f /etc/adjtime ]
then
  echo "0.0 0 0.0" > /etc/adjtime
fi
clock -a $GMT

After:
#
# Set and adjust the CMOS clock.
#
if [ ! -f /etc/adjtime ]
then
  echo "0.0 0 0.0" > /etc/adjtime
fi
hwclock --adjust
hwclock --hctosys $GMT

That should do the job.

--Galen



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: