1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-scripts-bootscripts" role="wrap">
|
---|
9 | <?dbhtml filename="bootscripts.html"?>
|
---|
10 |
|
---|
11 | <title>CLFS-Bootscripts-&clfs-bootscripts-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-scripts-bootscripts">
|
---|
14 | <primary sortas="a-Bootscripts">Bootscripts</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The CLFS-Bootscripts package contains a set of scripts to
|
---|
21 | start/stop the CLFS system at bootup/shutdown.</para>
|
---|
22 |
|
---|
23 | </sect2>
|
---|
24 |
|
---|
25 | <sect2 role="installation">
|
---|
26 | <title>Installation of CLFS-Bootscripts</title>
|
---|
27 |
|
---|
28 | <important>
|
---|
29 |
|
---|
30 | <para>Unlike other chapters, after installing the bootscripts, do not
|
---|
31 | delete the bootscripts source directory. The bootscripts source directory
|
---|
32 | may be needed later.</para>
|
---|
33 |
|
---|
34 | </important>
|
---|
35 |
|
---|
36 | <para>Install the package:</para>
|
---|
37 |
|
---|
38 | <screen><userinput>make DESTDIR=${CLFS}/targetfs install-bootscripts</userinput></screen>
|
---|
39 |
|
---|
40 | <para>The CLFS startup bootscript is <filename>/etc/rc.d/startup</filename>,
|
---|
41 | but BusyBox will look for <filename>/etc/init.d/rcS</filename> to use as its
|
---|
42 | startup script. To ensure BusyBox finds the startup script, create the
|
---|
43 | <filename>${CLFS}/targetfs/etc/init.d</filename> directory and a symlink:</para>
|
---|
44 |
|
---|
45 | <screen><userinput>install -dv ${CLFS}/targetfs/etc/init.d
|
---|
46 | ln -sv ../rc.d/startup ${CLFS}/targetfs/etc/init.d/rcS</userinput></screen>
|
---|
47 |
|
---|
48 | </sect2>
|
---|
49 |
|
---|
50 | <sect2 id="contents-bootscripts" role="content">
|
---|
51 | <title>Contents of CLFS-Bootscripts</title>
|
---|
52 |
|
---|
53 | <segmentedlist>
|
---|
54 | <segtitle>Installed scripts</segtitle>
|
---|
55 |
|
---|
56 | <seglistitem>
|
---|
57 | <seg>bridge, functions, network, start, stop, and syslog.</seg>
|
---|
58 | </seglistitem>
|
---|
59 | </segmentedlist>
|
---|
60 |
|
---|
61 | <variablelist>
|
---|
62 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
63 | <?dbfo list-presentation="list"?>
|
---|
64 | <?dbhtml list-presentation="table"?>
|
---|
65 |
|
---|
66 | <varlistentry id="bridge-bootscripts">
|
---|
67 | <term><command>bridge</command></term>
|
---|
68 | <listitem>
|
---|
69 | <para>Sets up network bridging, if configured</para>
|
---|
70 | <indexterm zone="ch-scripts-bootscripts bridge-bootscripts">
|
---|
71 | <primary sortas="d-bridge">bridge</primary>
|
---|
72 | </indexterm>
|
---|
73 | </listitem>
|
---|
74 | </varlistentry>
|
---|
75 |
|
---|
76 | <varlistentry id="functions-bootscripts">
|
---|
77 | <term><command>functions</command></term>
|
---|
78 | <listitem>
|
---|
79 | <para>Contains common functions, such as error and status checking,
|
---|
80 | that are used by several bootscripts</para>
|
---|
81 | <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
|
---|
82 | <primary sortas="d-functions">functions</primary>
|
---|
83 | </indexterm>
|
---|
84 | </listitem>
|
---|
85 | </varlistentry>
|
---|
86 |
|
---|
87 | <varlistentry id="network-bootscripts">
|
---|
88 | <term><command>network</command></term>
|
---|
89 | <listitem>
|
---|
90 | <para>Sets up network interfaces, such as network cards, and sets up
|
---|
91 | the default gateway (where applicable)</para>
|
---|
92 | <indexterm zone="ch-scripts-bootscripts network-bootscripts">
|
---|
93 | <primary sortas="d-network">network</primary>
|
---|
94 | </indexterm>
|
---|
95 | </listitem>
|
---|
96 | </varlistentry>
|
---|
97 |
|
---|
98 | <varlistentry id="syslog-bootscripts">
|
---|
99 | <term><command>syslog</command></term>
|
---|
100 | <listitem>
|
---|
101 | <para>Starts and stops the system log daemons</para>
|
---|
102 | <indexterm zone="ch-scripts-bootscripts syslog-bootscripts">
|
---|
103 | <primary sortas="d-syslog">syslog</primary>
|
---|
104 | </indexterm>
|
---|
105 | </listitem>
|
---|
106 | </varlistentry>
|
---|
107 |
|
---|
108 | </variablelist>
|
---|
109 |
|
---|
110 | </sect2>
|
---|
111 |
|
---|
112 | </sect1>
|
---|