YDL 2 System Clock vs. Hardware Clock


Subject: YDL 2 System Clock vs. Hardware Clock
frazz@lump.mine.nu
Date: Thu Jun 14 2001 - 22:28:20 MDT


I seem to be having an issue, one that I think all OldWorld users are
facing. The System clock doesn't update to the hardware clock on reboot.
I've tried an old patch to /etc/rc.d/rc.sysinit from the days when
LinuxPPC suffered the same problems. That doesn't seem to work out,
basicly the patch was to set it so it would run /sbin/hwclock --hctsys
as the result of the script. I'll include the patch below the message.
But I'm wondering if anyone has permanent fix for this... I'm justy not
satsfied with running that command out of rc.local, and depending on
rdate.

Anyway here is the patch from the old LinuxPPC days.

--- /etc/rc.d/rc.sysinit.orig Wed Feb 23 12:44:14 2000
+++ /etc/rc.d/rc.sysinit Wed Feb 23 12:44:52 2000
@@ -79,7 +79,14 @@
 fi

 CLOCKDEF=""
-CLOCKFLAGS="--hctosys"
+if [ -x /sbin/hwclock ]; then
+ CLOCKFLAGS="--hctosys"
+ CLOCK=/sbin/hwclock
+# $CLOCK --adjust
+else
+ CLOCKFLAGS="-a"
+ CLOCK=/sbin/clock
+fi

 case "$UTC" in
    yes|true)
@@ -101,7 +108,7 @@
      ;;
 esac

-/sbin/hwclock $CLOCKFLAGS
+$CLOCK $CLOCKFLAGS

 action "Setting clock $CLOCKDEF: `date`" date

--- end of patch ---

Well thanks in advance for any kind of help here, I'm sure someone will
have one already.

        -Frazz



This archive was generated by hypermail 2a24 : Thu Jun 14 2001 - 21:33:52 MDT