[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
| 6 | <sect1 id="ch-scripts-bootscripts" xreflabel="Bootscripts">
|
---|
| 7 | <title>LFS-Bootscripts-&bootscripts-version;</title>
|
---|
| 8 | <?dbhtml filename="bootscripts.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>
|
---|
[418e6cc] | 11 |
|
---|
| 12 | <para>The LFS-Bootscripts package contains a set of bootscripts.</para>
|
---|
| 13 |
|
---|
[673b0d8] | 14 | <screen>&buildtime; 0.1 SBU
|
---|
| 15 | &diskspace; 0.3 MB</screen>
|
---|
| 16 |
|
---|
| 17 | <para>LFS-Bootscripts installation depends on: Bash, Coreutils.</para>
|
---|
[418e6cc] | 18 |
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | <sect2>
|
---|
| 22 | <title>Installation of LFS-Bootscripts</title>
|
---|
| 23 |
|
---|
[673b0d8] | 24 | <para>Installation of the bootscripts is very simple:</para>
|
---|
| 25 |
|
---|
| 26 | <screen><userinput>make install</userinput></screen>
|
---|
| 27 |
|
---|
| 28 | </sect2>
|
---|
[418e6cc] | 29 |
|
---|
| 30 |
|
---|
[673b0d8] | 31 | <sect2 id="contents-bootscripts"><title>Contents of LFS-bootscripts</title>
|
---|
[418e6cc] | 32 |
|
---|
[673b0d8] | 33 | <para><emphasis>Installed scripts</emphasis>: checkfs, cleanfs, functions,
|
---|
| 34 | halt, ifdown, ifup, loadkeys, localnet, mountfs, mountkernfs, network, rc,
|
---|
| 35 | reboot, sendsignals, setclock, static, swap, sysklogd and template</para>
|
---|
[418e6cc] | 36 |
|
---|
| 37 | </sect2>
|
---|
| 38 |
|
---|
| 39 |
|
---|
[673b0d8] | 40 | <sect2><title>Short descriptions</title>
|
---|
| 41 |
|
---|
| 42 | <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts"><primary sortas="d-checkfs">checkfs</primary></indexterm>
|
---|
| 43 | <para id="checkfs-bootscripts">The <command>checkfs</command> script checks the file systems just
|
---|
| 44 | before they are mounted (with the exception of journal and network based
|
---|
| 45 | file systems).</para>
|
---|
| 46 |
|
---|
| 47 | <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts"><primary sortas="d-cleanfs">cleanfs</primary></indexterm>
|
---|
| 48 | <para id="cleanfs-bootscripts">The <command>cleanfs</command> script removes files that shouldn't be
|
---|
| 49 | preserved between reboots, such as those in <filename>/var/run/</filename> and
|
---|
| 50 | <filename>/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 |
|
---|
| 54 | <indexterm zone="ch-scripts-bootscripts functions-bootscripts"><primary sortas="d-functions">functions</primary></indexterm>
|
---|
| 55 | <para id="functions-bootscripts">The <command>functions</command> script contains functions shared among
|
---|
| 56 | different scripts, such as error and status checking.</para>
|
---|
| 57 |
|
---|
| 58 | <indexterm zone="ch-scripts-bootscripts halt-bootscripts"><primary sortas="d-halt">halt</primary></indexterm>
|
---|
| 59 | <para id="halt-bootscripts">The <command>halt</command> script halts the system.</para>
|
---|
| 60 |
|
---|
| 61 | <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts"><primary sortas="d-ifdown">ifdown</primary></indexterm>
|
---|
| 62 | <para id="ifdown-bootscripts">The <command>ifdown</command> and <command>ifup</command> scripts assist
|
---|
| 63 | the network script with network devices.</para>
|
---|
| 64 |
|
---|
| 65 | <indexterm zone="ch-scripts-bootscripts loadkeys-bootscripts"><primary sortas="d-loadkeys">loadkeys</primary></indexterm>
|
---|
| 66 | <para id="loadkeys-bootscripts">The <command>loadkeys</command> script loads the keymap table you
|
---|
| 67 | specified as proper for your keyboard layout.</para>
|
---|
| 68 |
|
---|
| 69 | <indexterm zone="ch-scripts-bootscripts localnet-bootscripts"><primary sortas="d-localnet">localnet</primary></indexterm>
|
---|
| 70 | <para id="localnet-bootscripts">The <command>localnet</command> script sets up the system's hostname and
|
---|
| 71 | local loopback device.</para>
|
---|
| 72 |
|
---|
| 73 | <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts"><primary sortas="d-mountfs">mountfs</primary></indexterm>
|
---|
| 74 | <para id="mountfs-bootscripts">The <command>mountfs</command> script mounts all file systems that
|
---|
| 75 | aren't marked <emphasis>noauto</emphasis> or aren't network based.</para>
|
---|
| 76 |
|
---|
| 77 | <indexterm zone="ch-scripts-bootscripts mountkernfs-bootscripts"><primary sortas="d-mountkernfs">mountkernfs</primary></indexterm>
|
---|
| 78 | <para id="mountkernfs-bootscripts">The <command>mountkernfs</command> script is used to mount
|
---|
| 79 | kernel-provided file systems, such as /proc.</para>
|
---|
[418e6cc] | 80 |
|
---|
[673b0d8] | 81 | <indexterm zone="ch-scripts-bootscripts network-bootscripts"><primary sortas="d-network">network</primary></indexterm>
|
---|
| 82 | <para id="network-bootscripts">The <command>network</command> script sets up network interfaces, such
|
---|
| 83 | as network cards, and sets up the default gateway where applicable.</para>
|
---|
| 84 |
|
---|
| 85 | <indexterm zone="ch-scripts-bootscripts rc-bootscripts"><primary sortas="d-rc">rc</primary></indexterm>
|
---|
| 86 | <para id="rc-bootscripts">The <command>rc</command> script is the master run-level control script.
|
---|
| 87 | It is responsible for running all the other scripts one-by-one, in a sequence
|
---|
| 88 | determined by the name of the symbolic links being processed.</para>
|
---|
| 89 |
|
---|
| 90 | <indexterm zone="ch-scripts-bootscripts reboot-bootscripts"><primary sortas="d-reboot">reboot</primary></indexterm>
|
---|
| 91 | <para id="reboot-bootscripts">The <command>reboot</command> script reboots the system.</para>
|
---|
| 92 |
|
---|
| 93 | <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts"><primary sortas="d-sendsignals">sendsignals</primary></indexterm>
|
---|
| 94 | <para id="sendsignals-bootscripts">The <command>sendsignals</command> script makes sure every process is
|
---|
| 95 | terminated before the system reboots or halts.</para>
|
---|
| 96 |
|
---|
| 97 | <indexterm zone="ch-scripts-bootscripts setclock-bootscripts"><primary sortas="d-setclock">setclock</primary></indexterm>
|
---|
| 98 | <para id="setclock-bootscripts">The <command>setclock</command> script resets the kernel clock to
|
---|
| 99 | localtime in case the hardware clock isn't set to GMT time.</para>
|
---|
| 100 |
|
---|
| 101 | <indexterm zone="ch-scripts-bootscripts static-bootscripts"><primary sortas="d-static">static</primary></indexterm>
|
---|
| 102 | <para id="static-bootscripts">The <command>static</command> script provides the functionality needed
|
---|
| 103 | to assign a static IP address to a network interface.</para>
|
---|
| 104 |
|
---|
| 105 | <indexterm zone="ch-scripts-bootscripts swap-bootscripts"><primary sortas="d-swap">swap</primary></indexterm>
|
---|
| 106 | <para id="swap-bootscripts">The <command>swap</command> script enables and disables swap files and
|
---|
| 107 | partitions.</para>
|
---|
| 108 |
|
---|
| 109 | <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts"><primary sortas="d-sysklogd">sysklogd</primary></indexterm>
|
---|
| 110 | <para id="sysklogd-bootscripts">The <command>sysklogd</command> script starts and stops the system and
|
---|
| 111 | kernel log daemons.</para>
|
---|
| 112 |
|
---|
| 113 | <indexterm zone="ch-scripts-bootscripts template-bootscripts"><primary sortas="d-template">template</primary></indexterm>
|
---|
| 114 | <para id="template-bootscripts">The <command>template</command> script is a template you can use to
|
---|
| 115 | create your own bootscripts for your other daemons.</para>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 |
|
---|
| 120 |
|
---|
| 121 | </sect1>
|
---|