source: BOOK/boot/common/bootscripts.xml@ 6b82ace

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 6b82ace was 82fc053, checked in by Chris Staub <chris@…>, 11 years ago

Created sysvinit branch

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[82fc053]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-bootscripts" role="wrap">
9 <?dbhtml filename="bootscripts.html"?>
10
11 <title>Bootscripts for CLFS &bootscripts-clfs-version;</title>
12
13 <indexterm zone="ch-boot-bootscripts">
14 <primary sortas="a-Bootscripts">Bootscripts</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bootscripts package contains a set of scripts to
21 start/stop the CLFS system at bootup/shutdown.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Bootscripts</title>
27
28 <para os="a">Install the package:</para>
29
30<screen os="b"><userinput>make DESTDIR=/tools install-bootscripts</userinput></screen>
31
32 <para os="c">The <command>setclock</command> script reads the time from the
33 hardware clock, also known as the BIOS or the Complementary Metal Oxide
34 Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this
35 script will convert the hardware clock's time to the local time using
36 the <filename>/tools/etc/sysconfig/clock</filename> file (which tells the
37 <command>hwclock</command> program which timezone the user is in). There
38 is no way to detect whether or not the hardware clock is set to UTC, so
39 this needs to be configured manually.</para>
40
41
42
43 <para os="d">If you do not know whether or not the hardware clock is set to UTC,
44 you can find out after you have booted the new machine by running the
45 <userinput>hwclock --localtime --show</userinput> command, and if
46 necessary editing the <filename>/tools/etc/sysconfig/clock</filename> file.
47 The worst that will happen if you make a wrong guess here is that the
48 time displayed will be wrong.</para>
49
50 <para os="e">Change the value of the <envar>UTC</envar> variable below
51 to a value of <option>0</option> (zero) if the hardware clock
52 is <emphasis>not</emphasis> set to UTC time.</para>
53
54<screen os="f"><userinput>cat &gt; /tools/etc/sysconfig/clock &lt;&lt; "EOF"
55<literal># Begin /tools/etc/sysconfig/clock
56
57UTC=1
58
59# End /tools/etc/sysconfig/clock</literal>
60EOF</userinput></screen>
61
62 </sect2>
63
64 <sect2 role="content">
65 <title/>
66
67 <para>Details on this package are located in <xref
68 linkend="contents-bootscripts" role="."/></para>
69
70 </sect2>
71
72</sect1>
Note: See TracBrowser for help on using the repository browser.