aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
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
parent2b1174bee649fe5f442631a33e2d004bf0317dc7 (diff)
text updates
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1114 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/ethnet.xml2
-rw-r--r--chapter07/hosts.xml15
-rw-r--r--chapter07/loadkeys.xml7
-rw-r--r--chapter07/network.xml4
-rw-r--r--chapter07/setclock.xml20
-rw-r--r--chapter07/symperm.xml3
-rw-r--r--chapter07/usage.xml31
7 files changed, 39 insertions, 43 deletions
diff --git a/chapter07/ethnet.xml b/chapter07/ethnet.xml
index 1192da7c6..49a2c3f1c 100644
--- a/chapter07/ethnet.xml
+++ b/chapter07/ethnet.xml
@@ -154,7 +154,7 @@ BROADCAST=192.168.1.255
<para>Of course, the values of those four variables have to be changed
in every file to
match the proper setup. Usually NETMASK and BROADCAST will remain the
-same, just the DEVICE IP variables will change per network interface. If
+same, just the DEVICE and IP variables will change per network interface. If
the ONBOOT variable is set to yes, the ethnet script will bring it up
during boot up of the system. If set to anything else but yes it will be
ignored by the ethnet script and thus not brought up.</para>
diff --git a/chapter07/hosts.xml b/chapter07/hosts.xml
index d3ae0c6b7..dbeb337d1 100644
--- a/chapter07/hosts.xml
+++ b/chapter07/hosts.xml
@@ -1,13 +1,13 @@
<sect1 id="ch07-hosts">
<title>Creating the /etc/hosts file</title>
-<para>If a network card is to be configured, a user has to decide on the
+<para>If a network card is to be configured, you have to decide on the
IP-address, FQDN and possible aliases for use in the /etc/hosts file. An
example is:</para>
<para><screen>&lt;my-IP&gt; myhost.mydomain.org aliases</screen></para>
-<para>It should made sure that the IP-address is in the private network
+<para>You should made sure that the IP-address is in the private network
IP-address range. Valid ranges are:</para>
<para><screen> Class Networks
@@ -18,7 +18,7 @@ IP-address range. Valid ranges are:</para>
<para>A valid IP address could be 192.168.1.1. A valid FQDN for this IP could
be www.linuxfromscratch.org</para>
-<para>If a user is not going to use a network card, he still needs to
+<para>If you aren't going to use a network card, you still need to
come up with a FQDN. This is necessary for programs like Sendmail to operate
correctly (in fact; Sendmail won't run when it can't determine the FQDN).</para>
@@ -45,11 +45,10 @@ correctly (in fact; Sendmail won't run when it can't determine the FQDN).</para>
# End /etc/hosts (network card version)
<userinput>EOF</userinput></screen></para>
-<para>Of course, the 192.168.1.1 and www.mydomain.org have to be changed to the
-users
-liking (or requirements if assigned an IP-address by a network/system
-administrator and this machine is planned to be
-connected to that network).</para>
+<para>Of course, the 192.168.1.1 and www.mydomain.org have to be changed
+to your liking (or requirements if assigned an IP-address by a network/system
+administrator and this machine is planned to be connected to that
+network).</para>
</sect1>
diff --git a/chapter07/loadkeys.xml b/chapter07/loadkeys.xml
index e658955e7..f34d296ad 100644
--- a/chapter07/loadkeys.xml
+++ b/chapter07/loadkeys.xml
@@ -1,13 +1,8 @@
<sect1 id="ch07-loadkeys">
<title>Creating the loadkeys script</title>
-<!--
<para>You only need to create this script if you don't have a
-default 101 keys US keyboard layout.
-
-Because we've scrapped the symbolic link for the default, I assume
-that everyone will need this script?
--->
+default 101 keys US keyboard layout.</para>
<para>Create the <filename>/etc/init.d/loadkeys</filename> script by
running the following command:</para>
diff --git a/chapter07/network.xml b/chapter07/network.xml
index 9039b6ff3..8e3b84b99 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -6,8 +6,8 @@ hostname is put in it by running:</para>
<para><screen><userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput></screen></para>
-<para><quote>lfs</quote> needs to be replaced by the name the computer is
-to be called. A user should not enter the FQDN (Fully Qualified Domain
+<para><quote>lfs</quote> needs to be replaced with the name the computer is
+to be called. You should not enter the FQDN (Fully Qualified Domain
Name) here. That information will be put in the
<filename>/etc/hosts</filename> file later.</para>
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>.
diff --git a/chapter07/symperm.xml b/chapter07/symperm.xml
index e2ffcc9a3..d047a5d41 100644
--- a/chapter07/symperm.xml
+++ b/chapter07/symperm.xml
@@ -3,7 +3,8 @@
<para>These files get the proper permissions and the necessary symlinks
are created by running the following commands. If you didn't create the loadkeys
-and setclock scripts, make sure not to type them in the commands below.</para>
+and/or setclock scripts, make sure not to type them in the commands
+below.</para>
<para>A note of caution: all the symlinks (that start with an S or K) have to
be of the form Sxxxname where xxx are three digits denoting the order in
diff --git a/chapter07/usage.xml b/chapter07/usage.xml
index 1e8c944f1..c695004c5 100644
--- a/chapter07/usage.xml
+++ b/chapter07/usage.xml
@@ -35,25 +35,30 @@ before any runlevel is executed and runs the scripts listed in
/etc/rcS.d</para>
<para>There are a number of directories under /etc that look like like rc?.d
-where ? is the number of the runlevel and rcS.d. A user might take a look
-at one of
-them (after this chapter is finished, right now there's nothing
-there yet). There are a number of symbolic links. Some begin with an K,
-the others begin with an S, and all of them have three numbers following
-the initial letter. The K means to stop (kill) a service, and the S means
-to start a service. The numbers determine the order in which the scripts
-are run, from 000 to 999; the lower the number the sooner it gets
-executed. When init switches to another runlevel, the appropriate
-services get killed and others get started.</para>
+where ? is the number of the runlevel and rcS.d which contain a number of s
+ymbolic links. Some begin with an K, the others begin with an S, and all
+of them have three numbers following the initial letter. The K means to
+stop (kill) a service, and the S means to start a service. The numbers
+determine the order in which the scripts are run, from 000 to 999; the
+lower the number the sooner it gets executed. When init switches to
+another runlevel, the appropriate services get killed and others get
+started.</para>
<para>The real scripts are in /etc/init.d. They do all the work, and the
-symlinks all point to them. Killing links and starting
-links point to the same script in /etc/init.d. That's because the scripts
-can be called with different parameters like start, stop, restart, reload,
+symlinks all point to them. Killing links and starting links point to
+the same script in /etc/init.d. That's because the scripts can be
+called with different parameters like start, stop, restart, reload,
status. When a K link is encountered, the appropriate script is run with
the stop argument. When a S link is encountered, the appropriate script
is run with the start argument.</para>
+<para>There is one exception. Links that start with an S in the
+rc0.d and rc6.d directories will not cause anything to be started. They
+will be called with the paramater <emphasis>stop</emphasis> to stop
+something. The logic behind it is that when you are going to reboot or
+halt the system, you don't want to start anything, only stop the
+system.</para>
+
<para>These are descriptions of what the arguments make the
scripts do:</para>