From owner-doc-jp@jp.freebsd.org  Thu Mar  9 01:07:29 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA74854;
	Thu, 9 Mar 2000 01:07:29 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from sv01.geocities.co.jp (sv01.geocities.co.jp [210.153.89.155])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id BAA74849
	for <doc-jp@jp.freebsd.org>; Thu, 9 Mar 2000 01:07:29 +0900 (JST)
	(envelope-from hrs@geocities.co.jp)
Received: from mail.geocities.co.jp (mail.geocities.co.jp [210.153.89.137]) by sv01.geocities.co.jp (8.9.3+3.2W/3.7W) with ESMTP id BAA00504 for <doc-jp@jp.freebsd.org>; Thu, 9 Mar 2000 01:07:29 +0900 (JST)
Received: from mail.hrs.jp (sutnmax2-ppp07.ed.noda.sut.ac.jp [133.31.173.77]) by mail.geocities.co.jp (1.3G-GeocitiesJ-3.3) with ESMTP id BAA22746 for <doc-jp@jp.freebsd.org>; Thu, 9 Mar 2000 01:07:20 +0900 (JST)
Message-Id: <200003081607.BAA22746@mail.geocities.co.jp>
Received: from localhost (alph.hrs.jp [192.168.0.10])
	by mail.hrs.jp (8.9.3/3.7W/DomainMaster) with ESMTP id AAA20605
	for <doc-jp@jp.freebsd.org>; Thu, 9 Mar 2000 00:24:30 +0900 (JST)
	(envelope-from hrs@hrs.jp)
To: doc-jp@jp.freebsd.org
X-Mailer: Mew version 1.94 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Thu, 09 Mar 2000 00:24:29 +0900
From: Hiroki Sato <hrs@geocities.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 165
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: doc-jp 7147
Subject: [doc-jp 7147] books/handbook/internals/chapter.sgml #4
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: hrs@geocities.co.jp

$B:4F#!wEl5~M}2JBg3X$G$9!#(B

$B$5$i$KB3$-$G$9!#(B

(books/handbook/internals/chapter.sgml 1.15 -> 1.16 #4)
      
      <sect3 id="boot-loader-commands">
	<title>loader built-in commands</title>
	
	<para>The easy-to-use command set comprises of:</para>

	<variablelist>
	  <varlistentry>
	    <term>autoboot <replaceable>seconds</replaceable></term>

	    <listitem>
	      <para>Proceeds to boot the kernel if not interrupted
		within the time span given, in seconds.  It displays a
		countdown, and the default timespan is 10
		seconds.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>boot
	      <optional><replaceable>-options</replaceable></optional>
	      <optional><replaceable>kernelname</replaceable></optional></term>

	    <listitem>
	      <para>Immediately proceeds to boot the kernel, with the
		given options, if any, and with the kernel name given,
		if it is.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>help
	      <optional><replaceable>topic</replaceable></optional></term>

	    <listitem>
	      <para>Shows help messages read from
		<filename>/boot/loader.help</filename>.  If the topic
		given is <literal>index</literal>, then the list of
		available topics is given.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>include <replaceable>filename</replaceable>
	      &hellip;</term>

	    <listitem>
	      <para>Processes the file with the given filename.  The
		file is read in, and interpreted line by line.  An
		error immediately stops the include command.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>load <optional><option>-t</option>
	      <replaceable>type</replaceable></optional>
	      <replaceable>filename</replaceable></term>

	    <listitem>
	      <para>Loads the kernel, kernel module, or file of the
		type given, with the filename given.  Any arguments
		after filename are passed to the file.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>ls <optional><option>-l</option></optional>
	      <optional><replaceable>path</replaceable></optional></term>

	    <listitem>
	      <para>Displays a listing of files in the given path, or
		the root directory, if the path is not specified.  If
		<option>-l</option> is specified, file sizes will be
		shown too.</para>
	    </listitem>
	  </varlistentry>
	  <varlistentry>
	    <term>lsdev <optional><option>-v</option></optional></term>

	    <listitem>
	      <para>Lists all of the devices from which it may be
		possible to load modules. If <option>-v</option> is
		specified, more details are printed.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>lsmod <optional><option>-v</option></optional></term>

	    <listitem>
	      <para>Displays loaded modules. If <option>-v</option> is
		specified, more details are shown.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>more <replaceable>filename</replaceable></term>

	    <listitem>
	      <para>Display the files specified, with a pause at each
		<varname>LINES</varname> displayed.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>reboot</term>

	    <listitem>
	      <para>Immediately reboots the system.</para>
	    </listitem>
	  </varlistentry>

	  <varlistentry>
	    <term>set <replaceable>variable</replaceable></term>
	    <term>set
	      <replaceable>variable</replaceable>=<replaceable>value</replaceable></term>

	    <listitem>
	      <para>Set loader's environment variables.</para>
	    </listitem>
	  </varlistentry>
	</variablelist>
      </sect3>

      <sect3 id="boot-loader-examples">
	<title>loader examples</title>

	<para>Here are some practical examples of loader usage.</para>

	<itemizedlist>
	  <listitem>
	    <para>To simply boot your usual kernel, but in single-user
	      mode:</para>

	    <screen><userinput>boot -s</userinput></screen>
	  </listitem>

	  <listitem>
	    <para>To unload your usual kernel and modules, and then
	      load your old (or another) kernel:</para>

	    <screen><userinput>unload</userinput>
  <userinput>load kernel.old</userinput></screen>

	    <para>You can use <filename>kernel.GENERIC</filename> to
	      refer to the generic kernel that comes on the install
	      disk, or <filename>kernel.old</filename> to refer to
	      your previously installed kernel (when you've upgraded
	      or configured your own kernel, for example).</para>
	  </listitem>

	  <listitem>
	    <para>To load a kernel configuration script (an automated
	      script which does the things you'd normally do in the
	      kernel boot-time configurator):</para>

	    <screen><userinput>load -t userconfig_script
	      <replaceable>/boot/kernel.conf</replaceable></userinput></screen>
	  </listitem>
	</itemizedlist>
      </sect3>
    </sect2>
