📄 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> 7.16. 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 7. If You Are Going to Boot </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="fstab.html" title= "Creating the ${LFS}/etc/fstab File">Prev</a> <p> Creating the ${LFS}/etc/fstab File </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 7. If You Are Going to Boot">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"> 7.16. 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"> 7.16.1. Installation of CLFS-Bootscripts </h2> </div> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make ETCDIR=${LFS}/etc minimal</kbd></pre> <p> The <span><strong class="command">setclock</strong></span> script reads the time from the hardware clock, also known as the BIOS or the Complementary Metal Oxide Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this script will convert the hardware clock's time to the local time using the <tt class= "filename">/etc/localtime</tt> file (which tells the <span><strong class="command">hwclock</strong></span> program which timezone the user is in). There is no way to detect whether or not the hardware clock is set to UTC, so this needs to be configured manually. </p> <p> If you do not know whether or not the hardware clock is set to UTC, you can find out after you have booted the new machine by running the <strong class="userinput"><tt>hwclock --localtime --show</tt></strong> command, and if necessary editing the <tt class="filename">/etc/sysconfig/clock</tt> script. The worst that will happen if you make a wrong guess here is that the time displayed will be wrong. </p> <p> Change the value of the <tt class="envar">UTC</tt> variable below to a value of <tt class="option">0</tt> (zero) if the hardware clock is <span class="emphasis"><em>not</em></span> set to UTC time. </p> <pre class="userinput"><kbd class="command">cat > ${LFS}/etc/sysconfig/clock << "EOF"<tt class="literal"># Begin /etc/sysconfig/clockUTC=1# End /etc/sysconfig/clock</tt>EOF</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <p> Details on this package are located in <a href= "../bootscripts/bootscripts.html#contents-bootscripts" title= "11.2.2. Contents of CLFS-Bootscripts">Section 11.2.2, “Contents of CLFS-Bootscripts.”</a> </p> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="fstab.html" title= "Creating the ${LFS}/etc/fstab File">Prev</a> <p> Creating the ${LFS}/etc/fstab File </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 7. If You Are Going to Boot">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 + -