Update userguide translations, leavengood as nielx

This commit is contained in:
autonielx
2016-05-06 04:15:13 +02:00
parent f1d1e8297b
commit bd3f6a54ec
6819 changed files with 219064 additions and 2080 deletions
+9 -5
View File
@@ -11,6 +11,7 @@
* Humdinger <[email protected]>
* Translators:
* Pengphei Han
* Humdinger
*
-->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
@@ -44,6 +45,7 @@
<li><a href="../pt_BR/bash-scripting.html"><img src="../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
<li><a href="../ca/bash-scripting.html"><img src="../images/flags/ca.png" alt="" />Català</a></li>
<li><a href="../pl/bash-scripting.html"><img src="../images/flags/pl.png" alt="" />Polski</a></li>
<li><a href="../ro/bash-scripting.html"><img src="../images/flags/ro.png" alt="" />Română</a></li>
<li><a href="../en/bash-scripting.html"><img src="../images/flags/gb.png" alt="" />English</a></li>
</ul>
<span>
@@ -55,6 +57,7 @@
<div id="content">
<div>
<div class="box-info">本节的翻译还未完成。在未完成之前,所有的未完成部分都将使用英语原文。</div>
<h1>Bash 和脚本</h1>
@@ -73,12 +76,13 @@
<h2>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a><a id="user-scripts" name="user-scripts">Haiku的脚本</a></h2>
<p>Haiku系统中,当然也会用到脚本;其中系统的启动和关闭就是典型的脚本程序。这些确定的命令可以由用户脚本来进行扩充。<br />如果它们已经存在,您就需要自己来创建所需的文件。当然,你可以在脚本中适当的位置添加自己希望运行的命令。</p>
<p>Haiku used to have scripts for booting and shutting down. Today it uses the <a href="https://dev.haiku-os.org/wiki/LaunchDaemon">launch_daemon</a> instead. However, the user can still augment this process with certain user scripts.
If they don't exist already, you'll have to create the needed files yourself. Otherwise simply add your commands where in the process you want them to be executed.</p>
<h3>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="userbootscript" name="userbootscript">UserBootscript</a> 脚本</h3>
<p><span class="path">/boot/home/config/boot/UserBootscript</span> 脚本会在系统完成启动进程之后开始运行。例如,您可以在该脚本中添加一些命令来实现相关程序的自动启动:</p>
<p><span class="path">/boot/home/config/settings/boot/UserBootscript</span> 脚本会在系统完成启动进程之后开始运行。例如,您可以在该脚本中添加一些命令来实现相关程序的自动启动:</p>
<pre># Start LaunchBox
/boot/system/apps/LaunchBox &amp;
@@ -86,17 +90,17 @@
/boot/system/apps/Workspaces &amp;</pre>
<p>需要注意的是,要在命令之后添加 "<tt>&amp;</tt>" 字符,使其作为后台进程运行,否则该脚本将会中止运行直到该命令完成 (这种情况下:已启动的程序将会被关闭)。</p>
<p>对于上述的启动程序,另一种方式是把它们的快捷方式放入 <span class="path">/boot/home/config/boot/launch</span> 目录。右键点击你希望自动启动的程序,选择 <span class="menu">Create Link</span> ,然后<a href="tracker.html#navigating">导航</a>至上述目录。</p>
<p>对于上述的启动程序,另一种方式是把它们的快捷方式放入 <span class="path">/boot/home/config/settings/boot/launch</span> 目录。右键点击你希望自动启动的程序,选择 <span class="menu">Create Link</span> ,然后<a href="tracker.html#navigating">导航</a>至上述目录。</p>
<h3>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="usershutdownscript" name="usershutdownscript">UserShutdownScript</a> 脚本</h3>
<p><span class="path">/boot/home/config/boot/UserShutdownScript</span> 是系统关机进程的第一个步骤。如果该脚本返回一个非零的结束状态,则系统关闭失败。</p>
<p><span class="path">/boot/home/config/settings/boot/UserShutdownScript</span> 是系统关机进程的第一个步骤。如果该脚本返回一个非零的结束状态,则系统关闭失败。</p>
<h3>
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
<a id="usershutdownfinishscript" name="usershutdownfinishscript">UserShutdownFinishScript</a> 脚本</h3>
<p><span class="path">/boot/home/config/boot/UserShutdownFinishScript</span> 是结束进程的最后一个步骤。需要注意的是,在该脚本执行之前,大部分的系统进程已经终止。</p>
<p><span class="path">/boot/home/config/settings/boot/UserShutdownFinishScript</span> 是结束进程的最后一个步骤。需要注意的是,在该脚本执行之前,大部分的系统进程已经终止。</p>
</div>
</div>