Hi, the following actually is Part II of the thread "Where is timezone (Red Hat 6.2)" that I started Oct 28.
(Redhat 6.2, Kernel 2.2.14-5.0) I want to set my Hardware clock *and* the System Time (= Linux Time) at system-start with 2 commands, back-to-back, in /etc/rc.d/rc.sysinit ... my main question: will I ruin my system with it (the most important part of this message is at the very end in the lines starting with >>>> ... the rest of this mail: just comment, to be as verbose as possible. ------------------- hwclock --debug --adjust -utc # this will set the HW clock according to # the drift factor hwclock found out with # my glorious help ... the most important # option: --adjust .. the rest just for # security, 'tho not being completely # sure whether it makes sense for a # system start script. hwclock --debug --hctosys # sets the System Time from the before # correctly adjusted HW clock - most # important (seemingly): --hctosys. As # for the other option: same comment as # for the 'adjust' stuff above ------------------- the boot script that sets my clocks currently seems to be /etc/rc.d/rc.sysinit, the corresponding date/time setting part seems to be this one (my comments after 4 >>>>, the rest of it (save newly added spaces) as it was written by Red Hat or whoever it was): ############################################ # Set the system clock. ARC=0 SRM=0 UTC=0 if [ -f /etc/sysconfig/clock ]; then . /etc/sysconfig/clock # convert old style clock config to new values if [ "${CLOCKMODE}" = "GMT" ]; then UTC=true elif [ "${CLOCKMODE}" = "ARC" ]; then ARC=true fi fi CLOCKDEF="" CLOCKFLAGS="--hctosys" case "$UTC" in yes|true) CLOCKFLAGS="$CLOCKFLAGS -u"; CLOCKDEF="$CLOCKDEF (utc)"; ;; esac case "$ARC" in yes|true) CLOCKFLAGS="$CLOCKFLAGS -A"; CLOCKDEF="$CLOCKDEF (arc)"; ;; esac case "$SRM" in yes|true) CLOCKFLAGS="$CLOCKFLAGS -S"; CLOCKDEF="$CLOCKDEF (srm)"; ;; esac >>>> I would like to disable the following line (commenting it out >>>> or whatever): /sbin/hwclock $CLOCKFLAGS >>>> and replace it with the one following line: >>>> hwclock --debug --adjust -utc; hwclock --debug --hctosys action "Setting clock $CLOCKDEF: `date`" date >>>> Danger?? I'd like to simply test the stuff and see what happens >>>> but I thought (new as I still am to Linux) to get some advise before >>>> I ruin my system ..... :) ############################################ Thanks in anticipation Regards Wolfgang -- http://www.geocities.com/wolfgangpfeiffer/w3m.html _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list