udev: switch to OpenRC; bump revision.
--HG-- extra : convert_revision : 5fdfb64e584411c294ecadb2dc90286056313905
This commit is contained in:
parent
2ed7b24d16
commit
4e869cddf8
4 changed files with 69 additions and 0 deletions
25
templates/udev/files/udev.rc
Normal file
25
templates/udev/files/udev.rc
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/sbin/runscript
|
||||
#
|
||||
# OpenRC service for udev(7).
|
||||
|
||||
command=/sbin/udevd
|
||||
command_args="--daemon"
|
||||
name="UDev Daemon"
|
||||
|
||||
depend()
|
||||
{
|
||||
provide dev
|
||||
need sysfs
|
||||
before checkfs fsck
|
||||
keyword novserver
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
echo > /proc/sys/kernel/hotplug
|
||||
|
||||
ebegin "Starting UDev and waiting for uevents"
|
||||
${command} ${command_args} && \
|
||||
udevadm trigger && udevadm settle
|
||||
eend $?
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue