Changeset 014d534a


Ignore:
Timestamp:
Mar 9, 2014, 3:14:45 PM (9 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
8d741b2
Parents:
32c9666
Message:

Add description and commands for /etc/adjtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootscripts/common/clock.xml

    r32c9666 r014d534a  
    3636  time.</para>
    3737
    38   <para>If your clock is set to local time, tell <command>systemd-timedated</command>
    39   about it by running the following command:</para>
     38  <para><command>systemd-timedated</command> reads
     39  <filename>/etc/adjtime</filename>, and depending on the contents of the file,
     40  it sets the clock to either UTC or local time.</para>
     41
     42 <para>Create the <filename>/etc/adjtime</filename> file with the following
     43 contents if your hardware clock is set to local time:</para>
     44
     45<screen role="nodump"><userinput>cat &gt; /etc/adjtime &lt;&lt; "EOF"
     46<literal>0.0 0 0.0
     470
     48LOCAL</literal>
     49EOF</userinput></screen>
     50
     51 <para>If <filename>/etc/adjtime</filename> isn't present at first boot,
     52 <command>systemd-timedated</command> will assume that hardware clock is
     53 set to UTC and adjust the file according to that.</para>
     54
     55  <para>If your clock is set to local time, tell
     56  <command>systemd-timedated</command> about it by running the following
     57  command:</para>
    4058
    4159<screen role="nodump"><userinput>timedatectl set-local-rtc 1</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.