Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19898 - proposal for emerge-extensibility of hotplug
Summary: proposal for emerge-extensibility of hotplug
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-24 17:42 UTC by Denys Duchier
Modified: 2003-04-26 04:09 UTC (History)
0 users

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 Denys Duchier 2003-04-24 17:42:40 UTC
Currently, hotplug is not easily extensible.  For example, I am working on an ebuild for 
an ADSL modem that needs to extend /etc/hotplug/usb.usermap.  My proposal is as 
follows: 
 
1. create /etc/hotplug.d where individual applications can add files, e.g. application foo 
might add /etc/hotplug.d/foo.usb.usermap 
 
2. add the utility hotplug-update which concatenates all files /etc/hotplug.d/*.usb.usermap 
to create /etc/hotplug/usb.usermap 
 
In this fashion, emerging drivers for hotpluggable devices would become a lot simpler. 
removing them too, of course. 
 
I am quite willing to implement this proposal, if it is agreeable. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Denys Duchier 2003-04-25 01:57:20 UTC
hmm... I had overlooked the newer support for /etc/hotplug/usb/*.usermap.  I don't yet 
know how it relates to the old way. I'll be investigating. 
Comment 2 Denys Duchier 2003-04-25 07:04:57 UTC
I take back my proposal.  It turns out that indeed hotplug already has 
this sort of extensibility.  Unfortunately, the examples that I looked 
at where still in the old inconvenient style, hence my confusion. 
/etc/hotplug/usb.agent already uses all the /etc/hotplug/usb/*.usermap 
tables.  So it is simply a matter of dropping such a table in this 
directory (this is also where the scripts go).  It worked very well 
for my ebuild. 
 
I apologize for the noise 
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2003-04-26 04:09:32 UTC
Setting invalid because the reporter has helped himself... It would be a better world if all reporters would do that :)