aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/setclock.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-07-22 19:45:10 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-07-22 19:45:10 +0000
commitb822811980a5f82726cb641cbeff66be9eb6d92a (patch)
tree27c4db3c62aaea065b053e43c39b2ba44c04a05f /chapter07/setclock.xml
parent46f5461af92bc70c62bbb92895032b930954d835 (diff)
XML changes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@827 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/setclock.xml')
-rw-r--r--chapter07/setclock.xml62
1 files changed, 20 insertions, 42 deletions
diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml
index 613c39323..a7ea9f2b6 100644
--- a/chapter07/setclock.xml
+++ b/chapter07/setclock.xml
@@ -1,8 +1,7 @@
<sect1 id="ch07-setclock">
<title>Creating the setclock script</title>
-<para>
-The following script is only for real use when the hardware clock (also
+<para>The following script is only for real use when the hardware clock (also
known as BIOS or CMOS clock) isn't set to GMT time. The recommended
setup is setting the hardware clock to GMT and having the time converted
to localtime using the /etc/localtime symbolic link. But if an
@@ -10,23 +9,16 @@ OS is run that doesn't understand a clock set to GMT (most notable are
Microsoft OS'es) a user might want to set the clock to localtime so that
the time is properly displayed on those OS'es. This script will reset
the kernel time to the hardware clock without converting the time using
-the /etc/localtime symlink.
-</para>
+the /etc/localtime symlink.</para>
-<para>
-If you want to use this script on your system even if the
+<para>If you want to use this script on your system even if the
hardware clock is set to GMT, then the UTC variable below has to be
-changed to the value of <emphasis>1</emphasis>.
-</para>
+changed to the value of <emphasis>1</emphasis>.</para>
-<para>
-Creat the <filename>/etc/init.d/setclock</filename> script by running
-the following command:
-</para>
+<para>Create the <filename>/etc/init.d/setclock</filename> script by running
+the following command:</para>
-<para>
-<screen>
-<userinput>cat &gt; setclock &lt;&lt; "EOF"</userinput>
+<para><screen><userinput>cat &gt; setclock &lt;&lt; "EOF"</userinput>
#!/bin/sh
# Begin /etc/init.d/setclock
@@ -65,45 +57,31 @@ echo -n "Setting clock..."
evaluate_retval
# End /etc/init.d/setclock
-<userinput>EOF</userinput>
-</screen>
-</para>
+<userinput>EOF</userinput></screen></para>
<sect2>
<title>Creating the /etc/sysconfig/clock file</title>
-<para>
-Create a new file <filename>/etc/sysconfig/clock</filename> by running
-the following:
-</para>
+<para>Create a new file <filename>/etc/sysconfig/clock</filename> by running
+the following:</para>
-<para>
-<screen>
-<userinput>cat &gt; /etc/sysconfig/clock &lt;&lt; "EOF"</userinput>
+<para><screen><userinput>cat &gt; /etc/sysconfig/clock &lt;&lt; "EOF"</userinput>
# Begin /etc/sysconfig/clock
UTC=1
# End /etc/sysconfig/clock
-<userinput>EOF</userinput>
-</screen>
-</para>
+<userinput>EOF</userinput></screen></para>
-<para>
-If the hardware clock (also known as BIOS or CMOS clock) is not set to
+<para>If the hardware clock (also known as BIOS or CMOS clock) is not set to
GMT time, then the UTC variable in the /etc/sysconfig/clock file needs to be
-set to
-the value <emphasis>0</emphasis> (zero).
-</para>
-
-<para>
-Now, you may want to take a look at a very good hint explaining how we
-deal with time on LFS at
-<ulink url="http://archive.linuxfromscratch.org/lfs-hints/time.txt">
-http://archive.linuxfromscratch.org/lfs-hints/time.txt</ulink>.
-It explains issues such as timezones, UTC, and the TZ
-environment variable.
-</para>
+set to the value <emphasis>0</emphasis> (zero).</para>
+
+<para>Now, you may want to take a look at a very good hint explaining how we
+deal with time on LFS at <ulink
+url="http://archive.linuxfromscratch.org/lfs-hints/time.txt">http://archive.linuxfromscratch.org/lfs-hints/time.txt</ulink>.
+It explains issues such as timezones, UTC, and the TZ
+environment variable.</para>
</sect2>