Browse Source

chapter07: Translate lfs-bootscripts instruction

Xi Ruoyao 7 năm trước cách đây
mục cha
commit
6a5f3973f4
1 tập tin đã thay đổi với 55 bổ sung61 xóa
  1. 55 61
      chapter07/bootscripts.xml

+ 55 - 61
chapter07/bootscripts.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
@@ -23,10 +23,9 @@
   <sect2 role="package">
     <title/>
 
-    <para>The LFS-Bootscripts package contains a set of scripts to start/stop
-    the LFS system at bootup/shutdown.  
-    The configuration files and procedures needed to
-    customize the boot process are described in the following sections.</para>
+    <para>LFS-Bootscripts 软件包包含一组在引导和关机过程中,
+    启动和停止 LFS 系统的脚本。
+    它们的配置文件和自定义引导过程的方法将在后续章节中描述。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -41,40 +40,40 @@
   </sect2>
 
   <sect2 role="installation">
-    <title>Installation of LFS-Bootscripts</title>
+    <title>安装 LFS-Bootscripts</title>
 
-    <para>Install the package:</para>
+    <para>安装该软件包:</para>
 
 <screen><userinput remap="install">make install</userinput></screen>
 
   </sect2>
 
   <sect2 id="contents-bootscripts" role="content">
-    <title>Contents of LFS-Bootscripts</title>
+    <title>LFS-Bootscripts 的内容</title>
     <segmentedlist>
-      <segtitle>Installed scripts</segtitle>
-      <segtitle>Installed directories</segtitle>
+      <segtitle>安装的脚本</segtitle>
+      <segtitle>安装的目录</segtitle>
 
       <seglistitem>
         <seg>checkfs, cleanfs, console, functions, halt, ifdown,
         ifup, localnet, modules, mountfs, mountvirtfs, network, rc, reboot,
         sendsignals, setclock, ipv4-static, swap, sysctl, sysklogd, template,
-        udev, and udev_retry</seg>
-        <seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig,
-        /lib/services, /lib/lsb (symbolic link)</seg>
+        udev, 以及 udev_retry</seg>
+        <seg>/etc/rc.d, /etc/init.d (符号链接), /etc/sysconfig,
+        /lib/services, /lib/lsb (符号链接)</seg>
       </seglistitem>
     </segmentedlist>
 
     <variablelist>
-      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <bridgehead renderas="sect3">简要描述</bridgehead>
       <?dbfo list-presentation="list"?>
       <?dbhtml list-presentation="table"?>
 
       <varlistentry id="checkfs-bootscripts">
         <term><command>checkfs</command></term>
         <listitem>
-          <para>Checks the integrity of the file systems before they are mounted
-          (with the exception of journal and network based file systems)</para>
+          <para>在挂载文件系统前检查文件系统完整性
+          (日志文件系统和网络文件系统除外)</para>
           <indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
             <primary sortas="d-checkfs">checkfs</primary>
           </indexterm>
@@ -84,12 +83,13 @@
       <varlistentry id="cleanfs-bootscripts">
         <term><command>cleanfs</command></term>
         <listitem>
-          <para>Removes files that should not be preserved between reboots, such
-          as those in <filename class="directory">/var/run/</filename> and
-          <filename class="directory">/var/lock/</filename>; it re-creates
-          <filename>/var/run/utmp</filename> and removes the possibly present
-          <filename>/etc/nologin</filename>, <filename>/fastboot</filename>, and
-          <filename>/forcefsck</filename> files</para>
+          <para>删除在重启过程中不应保留的文件,例如
+          <filename class="directory">/var/run/</filename> 和
+		  <filename class="directory">/var/lock/</filename> 中的文件;
+		  重新创建
+          <filename>/var/run/utmp</filename> 并删除可能存在的
+          <filename>/etc/nologin</filename>, <filename>/fastboot</filename>,
+          以及 <filename>/forcefsck</filename> 文件</para>
           <indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
             <primary sortas="d-cleanfs">cleanfs</primary>
           </indexterm>
@@ -99,8 +99,8 @@
       <varlistentry id="console-bootscripts">
         <term><command>console</command></term>
         <listitem>
-          <para>Loads the correct keymap table for the desired keyboard layout;
-          it also sets the screen font</para>
+          <para>加载用户希望使用的键盘布局对应的键映射表,
+          并加载屏幕字体</para>
           <indexterm zone="ch-scripts-bootscripts console-bootscripts">
             <primary sortas="d-console">console</primary>
           </indexterm>
@@ -110,8 +110,7 @@
       <varlistentry id="functions-bootscripts">
         <term><command>functions</command></term>
         <listitem>
-          <para>Contains common functions, such as error and status checking,
-          that are used by several bootscripts</para>
+          <para>包含若干启动脚本使用的错误处理和状态检查等脚本</para>
           <indexterm zone="ch-scripts-bootscripts functions-bootscripts">
             <primary sortas="d-functions">functions</primary>
           </indexterm>
@@ -121,7 +120,7 @@
       <varlistentry id="halt-bootscripts">
         <term><command>halt</command></term>
         <listitem>
-          <para>Halts the system</para>
+          <para>停止系统运行</para>
           <indexterm zone="ch-scripts-bootscripts halt-bootscripts">
             <primary sortas="d-halt">halt</primary>
           </indexterm>
@@ -131,7 +130,7 @@
       <varlistentry id="ifdown-bootscripts">
         <term><command>ifdown</command></term>
         <listitem>
-          <para>Stops a network device</para>
+          <para>停用网络设备</para>
           <indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
             <primary sortas="d-ifdown">ifdown</primary>
           </indexterm>
@@ -141,7 +140,7 @@
       <varlistentry id="ifup-bootscripts">
         <term><command>ifup</command></term>
         <listitem>
-          <para>Initializes a network device</para>
+          <para>启用网络设备</para>
           <indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
             <primary sortas="d-ifup">ifup</primary>
           </indexterm>
@@ -151,7 +150,7 @@
       <varlistentry id="localnet-bootscripts">
         <term><command>localnet</command></term>
         <listitem>
-          <para>Sets up the system's hostname and local loopback device</para>
+          <para>设置系统主机名和本地回环设备</para>
           <indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
             <primary sortas="d-localnet">localnet</primary>
           </indexterm>
@@ -161,9 +160,9 @@
       <varlistentry id="modules-bootscripts">
         <term><command>modules</command></term>
         <listitem>
-          <para>Loads kernel modules listed in
-          <filename>/etc/sysconfig/modules</filename>, using arguments
-          that are also given there</para>
+          <para>加载
+          <filename>/etc/sysconfig/modules</filename> 中指定的模块,
+          并在加载过程中使用该文件中给定的参数</para>
           <indexterm zone="ch-scripts-bootscripts modules-bootscripts">
             <primary sortas="d-modules">modules</primary>
           </indexterm>
@@ -173,8 +172,8 @@
       <varlistentry id="mountfs-bootscripts">
         <term><command>mountfs</command></term>
         <listitem>
-          <para>Mounts all file systems, except ones that are marked
-          <emphasis>noauto</emphasis> or are network based</para>
+          <para>挂载所有文件系统,标为
+          <emphasis>noauto</emphasis> 的文件系统和网络文件系统除外</para>
           <indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
             <primary sortas="d-mountfs">mountfs</primary>
           </indexterm>
@@ -184,8 +183,8 @@
       <varlistentry id="mountvirtfs-bootscripts">
         <term><command>mountvirtfs</command></term>
         <listitem>
-          <para>Mounts virtual kernel file systems, such as <systemitem
-          class="filesystem">proc</systemitem></para>
+          <para>挂载 <systemitem
+          class="filesystem">proc</systemitem> 等虚拟内核文件系统</para>
           <indexterm zone="ch-scripts-bootscripts mountvirtfs-bootscripts">
             <primary sortas="d-mountvirtfs">mountvirtfs</primary>
           </indexterm>
@@ -195,8 +194,7 @@
       <varlistentry id="network-bootscripts">
         <term><command>network</command></term>
         <listitem>
-          <para>Sets up network interfaces, such as network cards, and sets up
-          the default gateway (where applicable)</para>
+          <para>设定网卡等网络接口,并(在可能的情况下)设定默认网关</para>
           <indexterm zone="ch-scripts-bootscripts network-bootscripts">
             <primary sortas="d-network">network</primary>
           </indexterm>
@@ -206,9 +204,9 @@
       <varlistentry id="rc-bootscripts">
         <term><command>rc</command></term>
         <listitem>
-          <para>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</para>
+          <para>主要运行级别控制脚本;
+          它负责逐个运行所有其他脚本,
+          运行的顺序根据脚本符号链接的名称确定</para>
           <indexterm zone="ch-scripts-bootscripts rc-bootscripts">
             <primary sortas="d-rc">rc</primary>
           </indexterm>
@@ -218,7 +216,7 @@
       <varlistentry id="reboot-bootscripts">
         <term><command>reboot</command></term>
         <listitem>
-          <para>Reboots the system</para>
+          <para>重启系统</para>
           <indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
             <primary sortas="d-reboot">reboot</primary>
           </indexterm>
@@ -228,8 +226,7 @@
       <varlistentry id="sendsignals-bootscripts">
         <term><command>sendsignals</command></term>
         <listitem>
-          <para>Makes sure every process is terminated before the system reboots
-          or halts</para>
+          <para>确认在系统重启或停止运行前,所有进程已经终止</para>
           <indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
             <primary sortas="d-sendsignals">sendsignals</primary>
           </indexterm>
@@ -239,8 +236,7 @@
       <varlistentry id="setclock-bootscripts">
         <term><command>setclock</command></term>
         <listitem>
-          <para>Resets the kernel clock to local time in case the hardware clock
-          is not set to UTC time</para>
+          <para>在硬件时钟没有设定为 UTC 时,将内核时钟重设为本地时间</para>
           <indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
             <primary sortas="d-setclock">setclock</primary>
           </indexterm>
@@ -250,8 +246,7 @@
       <varlistentry id="ipv4-static-bootscripts">
         <term><command>ipv4-static</command></term>
         <listitem>
-          <para>Provides the functionality needed to assign a static Internet
-          Protocol (IP) address to a network interface</para>
+          <para>提供为网络接口分配静态网际互联协议(IP)地址的功能</para>
           <indexterm zone="ch-scripts-bootscripts ipv4-static-bootscripts">
             <primary sortas="d-ipv4-static">ipv4-static</primary>
           </indexterm>
@@ -261,7 +256,7 @@
       <varlistentry id="swap-bootscripts">
         <term><command>swap</command></term>
         <listitem>
-          <para>Enables and disables swap files and partitions</para>
+          <para>启用或禁用交换空间</para>
           <indexterm zone="ch-scripts-bootscripts swap-bootscripts">
             <primary sortas="d-swap">swap</primary>
           </indexterm>
@@ -271,9 +266,9 @@
       <varlistentry id="sysctl-bootscripts">
         <term><command>sysctl</command></term>
         <listitem>
-          <para>Loads system configuration values from
-          <filename>/etc/sysctl.conf</filename>, if that file exists,
-          into the running kernel</para>
+          <para>如果
+          <filename>/etc/sysctl.conf</filename> 存在,
+          将其中的系统配置选项值加载到内核</para>
           <indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
             <primary sortas="d-sysctl">sysctl</primary>
           </indexterm>
@@ -283,7 +278,7 @@
       <varlistentry id="sysklogd-bootscripts">
         <term><command>sysklogd</command></term>
         <listitem>
-          <para>Starts and stops the system and kernel log daemons</para>
+          <para>启动或停止系统与内核日志守护进程</para>
           <indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
             <primary sortas="d-sysklogd">sysklogd</primary>
           </indexterm>
@@ -293,8 +288,7 @@
       <varlistentry id="template-bootscripts">
         <term><command>template</command></term>
         <listitem>
-          <para>A template to create custom bootscripts for other
-          daemons</para>
+          <para>为其他守护进程创建自定义启动脚本的模板</para>
           <indexterm zone="ch-scripts-bootscripts template-bootscripts">
             <primary sortas="d-template">template</primary>
           </indexterm>
@@ -304,8 +298,8 @@
       <varlistentry id="udev-bootscripts">
         <term><command>udev</command></term>
         <listitem>
-          <para>Prepares the <filename class="directory">/dev</filename>
-          directory and starts Udev</para>
+          <para>准备 <filename class="directory">/dev</filename>
+          目录,并启动 udev</para>
           <indexterm zone="ch-scripts-bootscripts udev-bootscripts">
             <primary sortas="d-udev">udev</primary>
           </indexterm>
@@ -315,9 +309,9 @@
       <varlistentry id="udev-retry-bootscripts">
         <term><command>udev_retry</command></term>
         <listitem>
-          <para>Retries failed udev uevents, and copies generated rules
-          files from <filename class="directory">/run/udev</filename> to
-          <filename class="directory">/etc/udev/rules.d</filename> if required</para>
+          <para>重试失败的 udev 事件,如果必要的话,将生成的规则从
+          <filename class="directory">/run/udev</filename> 拷贝到
+          <filename class="directory">/etc/udev/rules.d</filename></para>
           <indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
             <primary sortas="d-udev-retry">udev_retry</primary>
           </indexterm>