Re: problem with setting time

1997-03-27 Thread Dale Scheetz
On Wed, 26 Mar 1997, Eugene H. Sevinian wrote:

> Hi All,
> Is there  any magic for setting system time except using 
> `date -s 14:20:00 ? I  have it shifted forward by 3 hours each  time 
> after rebooting while the board clock is set correct.

Read the man page for 'clock'. This is the command that actually sets the
CMOS clock. Date only sets the system clock, which gets reset from the
CMOS clock on every bootup.
If your timezone is set correctly (use tzconfig if not) then the other
possibility is that you have GMT set wrong. Take a look in
/etc/init.d/boot for the line that defines this variable. If your CMOS
clock is set to Universal Time (look in CMOS setup) then the line should
read 'GMT="-u"'. If you CMOS clock is set to local time (normal in the US)
then the line should read 'GMT=""'.
Once you have these set correctly you can use the clock command to set the
time on the CMOS clock and everything (at least with respect to time)
should work properly.

Luck,

Dwarf
-- 
_-_-_-_-_-_-  _-_-_-_-_-_-_-

aka   Dale Scheetz   Phone:   1 (904) 656-9769
  Flexible Software  11000 McCrackin Road
  e-mail:  [EMAIL PROTECTED] Tallahassee, FL  32308

_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-


Re: problem with setting time

1997-03-26 Thread Alfons Juan i Ciscar

On Wed, 26 Mar 1997, Eugene H. Sevinian wrote:

> Hi All,
> Is there  any magic for setting system time except using 
> `date -s 14:20:00 ? I  have it shifted forward by 3 hours each  time 
> after rebooting while the board clock is set correct.
> 
> ( date --version
> date - GNU sh-utils 1.12)
> 
> Eugene Sevinian
> 

I have substituted "clock -a $GMT" by "clock -s" in /etc/init.d/boot.

Alfons Juan




problem with setting time

1997-03-26 Thread Eugene H. Sevinian
Hi All,
Is there  any magic for setting system time except using 
`date -s 14:20:00 ? I  have it shifted forward by 3 hours each  time 
after rebooting while the board clock is set correct.

( date --version
date - GNU sh-utils 1.12)

Eugene Sevinian


Cosmic Ray Division
Yerevan Phisics Institute
Alikhanian's Brothers str.2
375036 Yerevan 36
Armenia

URL: http://www.yerphi.am/crd/prs/sevinian.html
Phone: 374-2-352041 (YerPhI), 374-2-344873 (aprt.)
Fax: 374-2-350030