bootscripts.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-scripts-bootscripts" role="wrap">
  7. <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
  8. <?dbhtml filename="bootscripts.html"?>
  9. <indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The LFS-Bootscripts package contains a set of bootscripts.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>516 KB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>&dependencies;</segtitle>
  19. <seglistitem><seg>Bash and Coreutils</seg></seglistitem>
  20. </segmentedlist>
  21. </sect2>
  22. <sect2 role="installation">
  23. <title>Installation of LFS-Bootscripts</title>
  24. <para>Install the package:</para>
  25. <screen><userinput>make install</userinput></screen>
  26. </sect2>
  27. <sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-bootscripts</title>
  28. <segmentedlist>
  29. <segtitle>Installed scripts</segtitle>
  30. <seglistitem><seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup,
  31. localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static,
  32. swap, sysklogd, template, and udev</seg></seglistitem>
  33. </segmentedlist>
  34. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  35. <?dbfo list-presentation="list"?>
  36. <?dbhtml list-presentation="table"?>
  37. <varlistentry id="checkfs-bootscripts">
  38. <term><command>checkfs</command></term>
  39. <listitem>
  40. <para>Checks the file systems before they are mounted (with the exception of journal
  41. and network based file systems)</para>
  42. <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
  43. </listitem>
  44. </varlistentry>
  45. <varlistentry id="cleanfs-bootscripts">
  46. <term><command>cleanfs</command></term>
  47. <listitem>
  48. <para>Removes files that should not be
  49. preserved between reboots, such as those in <filename class="directory">/var/run/</filename> and
  50. <filename class="directory">/var/lock/</filename>; it re-creates <filename>/var/run/utmp</filename>
  51. and removes the possibly present <filename>/etc/nologin</filename>,
  52. <filename>/fastboot</filename>, and <filename>/forcefsck</filename> files</para>
  53. <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry id="console-bootscripts">
  57. <term><command>console</command></term>
  58. <listitem>
  59. <para>Loads the keymap table specified as proper for the keyboard
  60. layout; it also sets the screen font</para>
  61. <indexterm zone="ch-scripts-bootscripts console-bootscripts"><primary sortas="d-console">console</primary></indexterm>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="functions-bootscripts">
  65. <term><command>functions</command></term>
  66. <listitem>
  67. <para>Contains functions shared among different scripts, such as error
  68. and status checking</para>
  69. <indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="halt-bootscripts">
  73. <term><command>halt</command></term>
  74. <listitem>
  75. <para>Halts the system</para>
  76. <indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="hotplug-bootscripts">
  80. <term><command>hotplug</command></term>
  81. <listitem>
  82. <para>Load modules for system devices</para>
  83. <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts"><primary sortas="d-hotplug">hotplug</primary></indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="ifdown-bootscripts">
  87. <term><command>ifdown</command></term>
  88. <listitem>
  89. <para>Assists the network script with network devices</para>
  90. <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="ifup-bootscripts">
  94. <term><command>ifup</command></term>
  95. <listitem>
  96. <para>Assists the network script with network devices</para>
  97. <indexterm zone="ch-scripts-bootscripts ifup-bootscripts"><primary sortas="d-ifup">ifup</primary></indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="localnet-bootscripts">
  101. <term><command>localnet</command></term>
  102. <listitem>
  103. <para>Sets up the system's hostname and local loopback device</para>
  104. <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="mountfs-bootscripts">
  108. <term><command>mountfs</command></term>
  109. <listitem>
  110. <para>Mounts all file systems, except ones that are marked
  111. <emphasis>noauto</emphasis> or are network based</para>
  112. <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="mountkernfs-bootscripts">
  116. <term><command>mountkernfs</command></term>
  117. <listitem>
  118. <para>Is used to mount kernel-provided file systems, such as
  119. <systemitem class="filesystem">proc</systemitem></para>
  120. <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="network-bootscripts">
  124. <term><command>network</command></term>
  125. <listitem>
  126. <para>Sets up network interfaces, such as network cards, and sets up
  127. the default gateway (where applicable)</para>
  128. <indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
  129. </listitem>
  130. </varlistentry>
  131. <varlistentry id="rc-bootscripts">
  132. <term><command>rc</command></term>
  133. <listitem>
  134. <para>The master run-level control script; it is responsible for
  135. running all other scripts one-by-one, in a sequence determined by
  136. the name of the symbolic links being processed</para>
  137. <indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="reboot-bootscripts">
  141. <term><command>reboot</command></term>
  142. <listitem>
  143. <para>Reboots the system</para>
  144. <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
  145. </listitem>
  146. </varlistentry>
  147. <varlistentry id="sendsignals-bootscripts">
  148. <term><command>sendsignals</command></term>
  149. <listitem>
  150. <para>Makes sure every process is terminated before the system reboots
  151. or halts</para>
  152. <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
  153. </listitem>
  154. </varlistentry>
  155. <varlistentry id="setclock-bootscripts">
  156. <term><command>setclock</command></term>
  157. <listitem>
  158. <para>Resets the kernel clock to local time in case the hardware clock
  159. is not set to UTC time</para>
  160. <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
  161. </listitem>
  162. </varlistentry>
  163. <varlistentry id="static-bootscripts">
  164. <term><command>static</command></term>
  165. <listitem>
  166. <para>Provides the functionality needed to assign a static Internet
  167. Protocol (IP) address to a network interface</para>
  168. <indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
  169. </listitem>
  170. </varlistentry>
  171. <varlistentry id="swap-bootscripts">
  172. <term><command>swap</command></term>
  173. <listitem>
  174. <para>Enables and disables swap files and partitions</para>
  175. <indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
  176. </listitem>
  177. </varlistentry>
  178. <varlistentry id="sysklogd-bootscripts">
  179. <term><command>sysklogd</command></term>
  180. <listitem>
  181. <para>Starts and stops the system and kernel log daemons</para>
  182. <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
  183. </listitem>
  184. </varlistentry>
  185. <varlistentry id="template-bootscripts">
  186. <term><command>template</command></term>
  187. <listitem>
  188. <para>A template to create custom bootscripts for other
  189. daemons</para>
  190. <indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
  191. </listitem>
  192. </varlistentry>
  193. <varlistentry id="udev-bootscripts">
  194. <term><command>udev</command></term>
  195. <listitem>
  196. <para>Sets up udev and create the devices nodes in <filename
  197. class="directory">/dev</filename></para>
  198. <indexterm zone="ch-scripts-bootscripts udev-bootscripts"><primary sortas="d-udev">udev</primary></indexterm>
  199. </listitem>
  200. </varlistentry>
  201. </variablelist>
  202. </sect2>
  203. </sect1>