source: chapter06/hotplug.xml@ a0e1913

Last change on this file since a0e1913 was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-hotplug" xreflabel="Hotplug" role="wrap">
7<title>Hotplug-&hotplug-version;</title>
8<?dbhtml filename="hotplug.html"?>
9
10<indexterm zone="ch-system-hotplug"><primary sortas="a-Hotplug">Hotplug</primary></indexterm>
11
12<sect2 role="package"><title/>
13<!-- Edit me - The entire text of this section needs to be proofread, as it
14is taken verbatim from Unstable -->
15<para>The Hotplug package contains scripts that react upon hotplug events
16generated by the kernel. Such events correspond to every change in the
17in the kernel state visible in the <systemitem class="filesystem">sysfs</systemitem>
18filesystem, e.g., the addition and removal of hardware. This package also detects
19existing hardware during boot and inserts the relevant modules into the running kernel.</para>
20
21<segmentedlist>
22<segtitle>&buildtime;</segtitle>
23<segtitle>&diskspace;</segtitle>
24<seglistitem><seg>0.01 SBU</seg><seg>0.1 MB</seg></seglistitem>
25</segmentedlist>
26
27<segmentedlist>
28<segtitle>&dependencies;</segtitle>
29<seglistitem><seg>Unchecked</seg></seglistitem>
30</segmentedlist>
31</sect2>
32
33<sect2 role="installation">
34<title>Installation of Hotplug</title>
35
36<para>Install the Hotplug package:</para>
37
38<screen><userinput>make install</userinput></screen>
39
40<para>Remove Hotplug's not-so-clean init script, since we're going to be using
41the script including with LFS-Bootscripts:</para>
42
43<screen><userinput>rm -rf /etc/init.d</userinput></screen>
44
45<para>Network device hotplugging is not supported by LFS bootscripts yet. For
46that reason, remove the network hotplug agent:</para>
47
48<screen><userinput>rm -f /etc/hotplug/net.agent</userinput></screen>
49</sect2>
50
51
52<sect2 id="contents-hotplug" role="content"><title>Contents of Hotplug</title>
53
54<segmentedlist>
55<segtitle>Installed program</segtitle>
56<segtitle>Installed scripts</segtitle>
57<segtitle>Installed files</segtitle>
58<seglistitem><seg>hotplug</seg>
59<seg>/etc/hotplug/*.rc, /etc/hotplug/*.agent</seg>
60<seg>/etc/hotplug/hotplug.functions, /etc/hotplug/blacklist, /etc/hotplug/{pci,usb},
61/etc/hotplug/usb.usermap, /etc/hotplug.d</seg></seglistitem>
62</segmentedlist>
63
64<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
65<?dbfo list-presentation="list"?>
66<?dbhtml list-presentation="table"?>
67
68<varlistentry id="hotplug">
69<term><command>hotplug</command></term>
70<listitem>
71<indexterm zone="ch-system-hotplug hotplug"><primary
72sortas="b-hotplug">hotplug</primary></indexterm>
73<para>This script is called by default by Linux kernel when something
74changes in its internal state (e.g., a new device is added or removed).</para>
75</listitem>
76</varlistentry>
77
78<varlistentry id="hotplug-rc">
79<term><command>/etc/hotplug/*.rc</command></term>
80<listitem>
81<indexterm zone="ch-system-hotplug hotplug-rc"><primary
82sortas="d-/etc/hotplug/*.rc">/etc/hotplug/*.rc</primary></indexterm>
83<para>These scripts are used for cold plugging, i.e., detection and other
84specific actions upon hardware already present during system startup.
85They are called by the <filename>hotplug</filename> initscript that comes
86from the LFS-Bootscripts package.
87The <command>*.rc</command>
88scripts try to recover hotplug events that were lost during system boot
89because, e.g., the root filesystem was not mounted by the kernel.
90</para>
91</listitem>
92</varlistentry>
93
94<varlistentry id="hotplug-agent">
95<term><command>/etc/hotplug/*.agent</command></term>
96<listitem>
97<indexterm zone="ch-system-hotplug hotplug-agent"><primary
98sortas="d-/etc/hotplug/*.agent">/etc/hotplug/*.agent</primary></indexterm>
99<para>These scripts are called by <command>hotplug</command>
100in response to different types of hotplug events generated by the kernel.
101Their action is to insert corresponding kernel modules and call user-provided
102scripts, if any.
103</para>
104</listitem>
105</varlistentry>
106
107<varlistentry id="hotplug-functions">
108<term><filename>/etc/hotplug/hotplug.functions</filename></term>
109<listitem>
110<indexterm zone="ch-system-hotplug hotplug-functions"><primary
111sortas="e-/etc/hotplug/hotplug.functions">/etc/hotplug/hotplug.functions</primary></indexterm>
112<para>This file contains common functions used by other scripts in Hotplug
113package.
114</para>
115</listitem>
116</varlistentry>
117
118<varlistentry id="hotplug-blacklist">
119<term><filename>/etc/hotplug/blacklist</filename></term>
120<listitem>
121<indexterm zone="ch-system-hotplug hotplug-blacklist"><primary
122sortas="e-/etc/hotplug/blacklist">/etc/hotplug/blacklist</primary></indexterm>
123<para>This file contains the list of modules that should never be
124inserted into the kernel by hotplug scripts.
125</para>
126</listitem>
127</varlistentry>
128
129<varlistentry id="hotplug-subdirs">
130<term><filename class="directory">/etc/hotplug/{pci,usb}</filename></term>
131<listitem>
132<indexterm zone="ch-system-hotplug hotplug-subdirs"><primary
133sortas="e-/etc/hotplug/{pci,usb}">/etc/hotplug/{pci,usb}</primary></indexterm>
134<para>These directories are supposed to contain user-written handlers for
135hotplug events.
136</para>
137</listitem>
138</varlistentry>
139
140<varlistentry id="hotplug-usb.usermap">
141<term><filename>/etc/hotplug/usb.usermap</filename></term>
142<listitem>
143<indexterm zone="ch-system-hotplug hotplug-usb.usermap"><primary
144sortas="e-/etc/hotplug/usb.usermap">/etc/hotplug/usb.usermap</primary></indexterm>
145<para>This file contains rules that determine which user-defined handlers to
146call for each USB device, based on its vendor, id and other attributes.
147</para>
148</listitem>
149</varlistentry>
150
151<varlistentry id="hotplug-hotplug.d">
152<term><filename class="directory">/etc/hotplug.d</filename></term>
153<listitem>
154<indexterm zone="ch-system-hotplug hotplug-hotplug.d"><primary
155sortas="e-/etc/hotplug.d">/etc/hotplug.d</primary></indexterm>
156<para>This directory contains programs (or symlinks to them)
157that are interested in receiving hotplug events. E.g.,
158<application>Udev</application> puts its symlink here during installation.
159</para>
160</listitem>
161</varlistentry>
162</variablelist>
163</sect2>
164</sect1>
Note: See TracBrowser for help on using the repository browser.