View Single Post

   
  #10 (permalink)  
Old 02-18-2008, 07:11 PM
R.
 
Posts: n/a
Default Re: howto change clock back

Morgan Landry wrote:
>
> Actually, I dual-boot, even though I use Linux 90% of the time, and my
> hardware clock was automagically changed. I did a full install, so I
> figure that my cron has something to do with this...


/etc/rc.d/rc.6

--------
# Save the system time to the hardware clock using hwclock
elif [ -x /sbin/hwclock ]; then
echo "Saving the system time to the hardware clock."
if [ -e /etc/hardwareclock ]; then
HC=`cat /etc/hardwareclock | while read LINE ; do
if [ "$LINE" = "UTC" -o "$LINE" = "utc" ]; then
echo utc
--------

Reply With Quote