Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70775 - coldplug should be more configurable
Summary: coldplug should be more configurable
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 04:12 UTC by Michal Margula
Modified: 2005-04-24 11:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Margula 2004-11-11 04:12:13 UTC
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
Comment 1 tklauser 2004-11-16 13:08:48 UTC
/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.
Comment 2 Michal Margula 2004-11-16 13:11:57 UTC
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.
Comment 3 tklauser 2004-11-21 08:48:42 UTC
Why would you want to use coldplug to detect your USB mouse?
Comment 4 Michal Margula 2004-11-21 13:31:58 UTC
Because coldplug is for devices connected before booting the system, am I right? And my mouse is connected all the time.
Comment 5 Thomas Bettler 2004-11-24 14:11:50 UTC
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.
Comment 6 tklauser 2004-11-25 08:17:56 UTC
> 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.
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-04-24 11:38:15 UTC
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.