Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397471 - sys-fs/udev: init.d should have a "reload" func for reloading rules
Summary: sys-fs/udev: init.d should have a "reload" func for reloading rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 08:25 UTC by SpanKY
Modified: 2012-01-03 18:58 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 SpanKY gentoo-dev 2012-01-03 08:25:59 UTC
simple change -- add this to /etc/init.d/udev:

extra_started_commands="reload"

reload()
{
    ebegin "Reloading udev rules"
    udevadm control --reload-rules
    eend $?
}
Comment 1 William Hubbs gentoo-dev 2012-01-03 17:50:44 UTC
This command line option and function changed in udev upstream.
Now it is --reload, and the function is to reload udev's kernel module
configuration.  There is no way to reload the rules since udev picks up
rules changes automatically.

I have implemented a reload command in our git for udev-gentoo-scripts at
commit 8d3e96f.

This only works for udev git, and will work for udev 176 when it
is released.

Should we back port and do another 171 rev bump for this,?
Comment 2 SpanKY gentoo-dev 2012-01-03 18:58:48 UTC
no need to push out.  i can wait ;).