The Hotplug package contains scripts that react upon hotplug events generated by the kernel. Such events correspond to every change in the kernel state visible in the sysfs filesystem, e.g., the addition and removal of hardware. This package also detects existing hardware during boot and inserts the relevant modules into the running kernel.
Install the Hotplug package:
make install
Copy a file that the “install” target omits.
cp etc/hotplug/pnp.distmap /etc/hotplug
Remove the init script that Hotplug installs since we are going to be using the script included in the LFS-Bootscripts package:
rm -rf /etc/init.d
Network device hotplugging is not yet supported by the LFS-Bootscripts package. For that reason, remove the network hotplug agent:
rm -f /etc/hotplug/net.agent
Create a directory for storing firmware that can be loaded by hotplug:
mkdir /lib/firmware