|
@@ -3,7 +3,7 @@
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
%general-entities;
|
|
]>
|
|
]>
|
|
-<sect1 id="ch-system-hotplug" role="wrap">
|
|
|
|
|
|
+<sect1 id="ch-system-hotplug" xreflabel="Hotplug" role="wrap">
|
|
<title>Hotplug-&hotplug-version;</title>
|
|
<title>Hotplug-&hotplug-version;</title>
|
|
<?dbhtml filename="hotplug.html"?>
|
|
<?dbhtml filename="hotplug.html"?>
|
|
|
|
|
|
@@ -27,35 +27,20 @@ modules into the running kernel.
|
|
<sect2 role="installation">
|
|
<sect2 role="installation">
|
|
<title>Installation of Hotplug</title>
|
|
<title>Installation of Hotplug</title>
|
|
|
|
|
|
-<para>
|
|
|
|
-By default, Hotplug does not output anything in its initscript and places it
|
|
|
|
-into
|
|
|
|
-<filename class="directory">/etc/init.d</filename>,
|
|
|
|
-whereas the place for initscripts in LFS is
|
|
|
|
-<filename class="directory">/etc/rc.d/init.d</filename>. Apply the patch
|
|
|
|
-that makes the output of hotplug initscript more verbose and places this
|
|
|
|
-initscript into the proper directory:
|
|
|
|
-</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput>patch -Np1 -i ../hotplug-&hotplug-version;-cosmetic-2.patch
|
|
|
|
-</userinput></screen>
|
|
|
|
-
|
|
|
|
<para>
|
|
<para>
|
|
Apply the patch that avoids bogus dependencies of the hotplug initscript
|
|
Apply the patch that avoids bogus dependencies of the hotplug initscript
|
|
upon <application>which</application> and
|
|
upon <application>which</application> and
|
|
<application>usbutils</application> packages:
|
|
<application>usbutils</application> packages:
|
|
</para>
|
|
</para>
|
|
|
|
|
|
-<screen><userinput>patch -Np1 -i ../hotplug-&hotplug-version;-bogus-deps-1.patch
|
|
|
|
-</userinput></screen>
|
|
|
|
|
|
+<screen><userinput>patch -Np1 -i ../hotplug-&hotplug-version;-bogus-deps-1.patch</userinput></screen>
|
|
|
|
|
|
<para>
|
|
<para>
|
|
USB coldplugging is somewhat broken in Hotplug by default. Fix this with the
|
|
USB coldplugging is somewhat broken in Hotplug by default. Fix this with the
|
|
following patch:
|
|
following patch:
|
|
</para>
|
|
</para>
|
|
|
|
|
|
-<screen><userinput>patch -Np1 -i ../hotplug-&hotplug-version;-device-2.patch
|
|
|
|
-</userinput></screen>
|
|
|
|
|
|
+<screen><userinput>patch -Np1 -i ../hotplug-&hotplug-version;-device-2.patch</userinput></screen>
|
|
|
|
|
|
<para>
|
|
<para>
|
|
At last, there is an optional patch that adds ISAPNP hardware detection
|
|
At last, there is an optional patch that adds ISAPNP hardware detection
|
|
@@ -71,10 +56,10 @@ run the following command:
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
-<para>Make a symbolic link that tells the lfs-bootscripts package to run the
|
|
|
|
-hotplug initscript after mounting and cleaning filesystems:</para>
|
|
|
|
|
|
+<para>Remove hotplug's not-so-clean init script, since we're going to be using
|
|
|
|
+the script including with LFS-Bootscripts:</para>
|
|
|
|
|
|
-<screen><userinput>ln -sf ../init.d/hotplug /etc/rc.d/init.d/S55hotplug</userinput></screen>
|
|
|
|
|
|
+<screen><userinput>rm -rf /etc/init.d</userinput></screen>
|
|
|
|
|
|
<para>
|
|
<para>
|
|
If you have applied the ISAPNP patch, add some required entries to
|
|
If you have applied the ISAPNP patch, add some required entries to
|