aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/setclock.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2001-08-29 19:50:53 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2001-08-29 19:50:53 +0000
commitfa914e596245dfff0d0424b3bdffd6f762b40e19 (patch)
treeb6d7018e9d43c9b2c445cb9094739ec56d79157f /chapter07/setclock.xml
parent2b1174bee649fe5f442631a33e2d004bf0317dc7 (diff)
text updates
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1114 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/setclock.xml')
-rw-r--r--chapter07/setclock.xml20
1 files changed, 8 insertions, 12 deletions
diff --git a/chapter07/setclock.xml b/chapter07/setclock.xml
index 917295bf3..08b133c52 100644
--- a/chapter07/setclock.xml
+++ b/chapter07/setclock.xml
@@ -6,15 +6,11 @@ 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
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
+Microsoft OS'es) you may want to set the clock to localtime so that
+the time is properly displayed on those OS'es. This script will then
+set the kernel time to the hardware clock without converting the time using
the /etc/localtime symlink.</para>
-<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>
-
<para>Create the <filename>/etc/init.d/setclock</filename> script by running
the following command:</para>
@@ -62,21 +58,21 @@ evaluate_retval
<sect2>
<title>Creating the /etc/sysconfig/clock file</title>
+<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>
+
<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>
# Begin /etc/sysconfig/clock
-UTC=1
+UTC=0
# End /etc/sysconfig/clock
<userinput>EOF</userinput></screen></para>
-<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="&hint-root;time.txt">&hint-root;time.txt</ulink>.