Currently I am using hotplug for my USB devices only. So it would be good to have a configurable option in e.g. /etc/conf.d/coldplug, like: SUBSYSTEMS="usb pci" And then add support for that file in /etc/init.d/coldplug and change lines from for RC in /etc/hotplug/*.rc do NAME=`basename $RC .rc` ebegin "Coldplugging $NAME devices" # We do not want to check the return status, as # some of the scripts may fail due to drivers not # compiled as modules ... $RC start eend 0 done to for RC in $SUBSYSTEMS do ebegin "Coldplugging $RC devices" # We do not want to check the return status, as # some of the scripts may fail due to drivers not # compiled as modules ... /etc/init.d/hotplug/$RC start eend 0 done
/etc/init.d/hotplug has been removed (or at least it doesn't do anything anymore), that's what coldplug is for now. There should be no need to use coldplug with usb devices BTW. From the changelog of sys-apps/hotplug: *hotplug-20040920 (20 Sep 2004) 20 Sep 2004; Greg Kroah-Hartman <gregkh@gentoo.org> +files/hotplug.rc.empty, +hotplug-20040920.ebuild: Oh yeah, /etc/init.d/hotplug doesn't do anything anymore. Use the coldplug package for loading modules at boot time based on the devices in your system.
But I was talking about coldplug changes, not hotplug. I only need coldplug to detect my USB mouse, so I want coldplug to be checking only USB devices, as described previously.
Why would you want to use coldplug to detect your USB mouse?
Because coldplug is for devices connected before booting the system, am I right? And my mouse is connected all the time.
Yeah, why shouldn't coldplug no longer manage this tasks? AFAIK hotplug earlier did managed such tasks correct. I don't like modules.autoload because it's annoying doing all that probing manually.
> Yeah, why shouldn't coldplug no longer manage this tasks? It does, but the preffered way to do this now is modules.autoload > AFAIK hotplug earlier did managed such tasks correct. I don't like > modules.autoload because it's annoying doing all that probing manually. hotplug did that before but it was splitted out into coldplug because it technically wasn't hotplugging (hotplugging is when you plug in a device during normal system operation) Please read http://www.gentoo.org/news/20041113-kernels.xml for more information.
I'm closing this, as we don't need another configuration option :) If you really want this, please provide a patch against the package and reopen the bug.