📄 bootscripts.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 11.2. CLFS-Bootscripts-0.1 </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 11. Setting Up System Bootscripts </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="chapter.html" title= "Setting Up System Bootscripts">Prev</a> <p> Setting Up System Bootscripts </p> </li> <li class="next"> <a accesskey="n" href="udev-rules.html" title= "Udev Rules-0.1-04172006">Next</a> <p> Udev Rules-0.1-04172006 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 11. Setting Up System Bootscripts">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 11.2. CLFS-Bootscripts-0.1 </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The CLFS-Bootscripts package contains a set of scripts to start/stop the CLFS system at bootup/shutdown. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Bash, Coreutils, Make, and Sed</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 11.2.1. Installation of CLFS-Bootscripts </h2> </div> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make install</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <div class="titlepage"> <a id="contents-bootscripts" name="contents-bootscripts"></a> <h2 class="sect2"> 11.2.2. Contents of CLFS-Bootscripts </h2> </div> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installed scripts:</span></strong> <span class="seg">checkfs, cleanfs, console, functions, halt, ifdown, ifup, localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, setclock, static, swap, sysklogd, and template.</span> </div> </div> </div> <div class="variablelist"> <h3> <a id="id3692790" name="id3692790"></a>Short Descriptions </h3> <table border="0"> <col align="left" valign="top" /> <tbody> <tr> <td> <a id="checkfs-bootscripts" name= "checkfs-bootscripts"></a><span class= "term"><span><strong class= "command">checkfs</strong></span></span> </td> <td> <p> Checks the integrity of the file systems before they are mounted (with the exception of journal and network based file systems) </p> </td> </tr> <tr> <td> <a id="cleanfs-bootscripts" name= "cleanfs-bootscripts"></a><span class= "term"><span><strong class= "command">cleanfs</strong></span></span> </td> <td> <p> Removes files that should not be preserved between reboots, such as those in <tt class= "filename">/var/run/</tt> and <tt class= "filename">/var/lock/</tt>; it re-creates <tt class= "filename">/var/run/utmp</tt> and removes the possibly present <tt class="filename">/etc/nologin</tt>, <tt class="filename">/fastboot</tt>, and <tt class= "filename">/forcefsck</tt> files </p> </td> </tr> <tr> <td> <a id="console-bootscripts" name= "console-bootscripts"></a><span class= "term"><span><strong class= "command">console</strong></span></span> </td> <td> <p> Loads the correct keymap table for the desired keyboard layout; it also sets the screen font </p> </td> </tr> <tr> <td> <a id="functions-bootscripts" name= "functions-bootscripts"></a><span class= "term"><span><strong class= "command">functions</strong></span></span> </td> <td> <p> Contains common functions, such as error and status checking, that are used by several bootscripts </p> </td> </tr> <tr> <td> <a id="halt-bootscripts" name= "halt-bootscripts"></a><span class= "term"><span><strong class= "command">halt</strong></span></span> </td> <td> <p> Halts the system </p> </td> </tr> <tr> <td> <a id="ifdown-bootscripts" name= "ifdown-bootscripts"></a><span class= "term"><span><strong class= "command">ifdown</strong></span></span> </td> <td> <p> Assists the network script with stopping network devices </p> </td> </tr> <tr> <td> <a id="ifup-bootscripts" name= "ifup-bootscripts"></a><span class= "term"><span><strong class= "command">ifup</strong></span></span> </td> <td> <p> Assists the network script with starting network devices </p> </td> </tr> <tr> <td> <a id="localnet-bootscripts" name= "localnet-bootscripts"></a><span class= "term"><span><strong class= "command">localnet</strong></span></span> </td> <td> <p> Sets up the system's hostname and local loopback device </p> </td> </tr> <tr> <td> <a id="mountfs-bootscripts" name= "mountfs-bootscripts"></a><span class= "term"><span><strong class= "command">mountfs</strong></span></span> </td> <td> <p> Mounts all file systems, except ones that are marked <span class="emphasis"><em>noauto</em></span> or are network based </p> </td> </tr> <tr> <td> <a id="mountkernfs-bootscripts" name= "mountkernfs-bootscripts"></a><span class= "term"><span><strong class= "command">mountkernfs</strong></span></span> </td> <td> <p> Mounts virtual kernel file systems, such as <tt class= "systemitem">proc</tt> </p> </td> </tr> <tr> <td> <a id="network-bootscripts" name= "network-bootscripts"></a><span class= "term"><span><strong class= "command">network</strong></span></span> </td> <td> <p> Sets up network interfaces, such as network cards, and sets up the default gateway (where applicable) </p> </td> </tr> <tr> <td> <a id="rc-bootscripts" name= "rc-bootscripts"></a><span class= "term"><span><strong class="command">rc</strong></span></span> </td> <td> <p> The master run-level control script; it is responsible for running all the other bootscripts one-by-one, in a sequence determined by the name of the symbolic links being processed </p> </td> </tr> <tr> <td> <a id="reboot-bootscripts" name= "reboot-bootscripts"></a><span class= "term"><span><strong class= "command">reboot</strong></span></span> </td> <td> <p> Reboots the system </p> </td> </tr> <tr> <td> <a id="sendsignals-bootscripts" name= "sendsignals-bootscripts"></a><span class= "term"><span><strong class= "command">sendsignals</strong></span></span> </td> <td> <p> Makes sure every process is terminated before the system reboots or halts </p> </td> </tr> <tr> <td> <a id="setclock-bootscripts" name= "setclock-bootscripts"></a><span class= "term"><span><strong class= "command">setclock</strong></span></span> </td> <td> <p> Resets the kernel clock to local time in case the hardware clock is not set to UTC time </p> </td> </tr> <tr> <td> <a id="static-bootscripts" name= "static-bootscripts"></a><span class= "term"><span><strong class= "command">static</strong></span></span> </td> <td> <p> Provides the functionality needed to assign a static Internet Protocol (IP) address to a network interface </p> </td> </tr> <tr> <td> <a id="swap-bootscripts" name= "swap-bootscripts"></a><span class= "term"><span><strong class= "command">swap</strong></span></span> </td> <td> <p> Enables and disables swap files and partitions </p> </td> </tr> <tr> <td> <a id="sysklogd-bootscripts" name= "sysklogd-bootscripts"></a><span class= "term"><span><strong class= "command">sysklogd</strong></span></span> </td> <td> <p> Starts and stops the system and kernel log daemons </p> </td> </tr> <tr> <td> <a id="template-bootscripts" name= "template-bootscripts"></a><span class= "term"><span><strong class= "command">template</strong></span></span> </td> <td> <p> A template to create custom bootscripts for other daemons </p> </td> </tr> </tbody> </table> </div> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="chapter.html" title= "Setting Up System Bootscripts">Prev</a> <p> Setting Up System Bootscripts </p> </li> <li class="next"> <a accesskey="n" href="udev-rules.html" title= "Udev Rules-0.1-04172006">Next</a> <p> Udev Rules-0.1-04172006 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 11. Setting Up System Bootscripts">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -