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.
Remove the installation of the init script provided by Hotplug, since we're going to be using the script included with LFS-Bootscripts. This command removes 3 lines (a mkdir, a chmod, and an install):
sed -e '/init.d/d' -i Makefile
Network device hotplugging is not supported by LFS-Bootscripts yet. For that reason, prevent the installation of the network hotplug agent:
mv etc/hotplug/net.agent etc/hotplug/net.agent.unsupported
Install the Hotplug package:
make install
Copy a file that the “install” target omits.
install -m644 etc/hotplug/pnp.distmap /etc/hotplug