Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149719 - udev-start.sh: support udevtrigger --*-nomatch rules
Summary: udev-start.sh: support udevtrigger --*-nomatch rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: udev-meta
  Show dependency tree
 
Reported: 2006-10-01 05:51 UTC by TGL
Modified: 2006-10-25 12:16 UTC (History)
0 users

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


Attachments
udev-start-trigger-exclude.patch (udev-start-trigger-exclude.patch,896 bytes, patch)
2006-10-01 05:52 UTC, TGL
Details | Diff
rc-confd-trigger-exclude.patch (rc-confd-trigger-exclude.patch,1.47 KB, patch)
2006-10-01 05:52 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2006-10-01 05:51:20 UTC
Here is a patch for udev-start.sh which adds two new configuration variables for better control of udevtrigger (>=0.99) coldplugging:
 * RC_UDEVTRIGGER_ATTR_EXCLUDE is to define rules to exclude some events using some "--attr-nomatch=" options.  I use it to exclude my wifi card, because i don't really need it and it sucks my laptop battery when the driver is loaded.
 * RC_UDEVTRIGGER_SUBSYSTEM_EXCLUDE is the same but for "--subsystem-nomatch=".  I don't use this one, but i thought it would be more coherent to have it too.

I will also attach a patch to document this variables in /etc/conf.d/rc.  It's not that i like it that much to put some udev specific stuffs in a baselayout config file, but i don't see where else it could go.  And anyway, that's where RC_DEVICE_TARBALL was set too, so i guess it's okay.
Comment 1 TGL 2006-10-01 05:52:17 UTC
Created attachment 98515 [details, diff]
udev-start-trigger-exclude.patch

The patch for udev-start.sh...
Comment 2 TGL 2006-10-01 05:52:57 UTC
Created attachment 98516 [details, diff]
rc-confd-trigger-exclude.patch

...and the one for /etc/conf.d/rc.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-10-24 14:36:12 UTC
We now support the different options in the udev startup script, so these
patches are no longer needed.
Comment 4 TGL 2006-10-25 12:16:28 UTC
(In reply to comment #3)
> We now support the different options in the udev startup script

I have synced and updated udev to 103, but can't find where what i was after (excluding a particular device from coldplugging) is supported.  Actually, it seems you are still using the udev-start.sh of version 99, which is the one this patch was made against, and which only offers the --attr-match=dev option.

Is there something i've not seen/understood?

Thanks.