2009-05-04 19:44:24 +00:00
|
|
|
#!/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} && \
|
2010-06-03 19:44:20 +00:00
|
|
|
udevadm trigger --action=add && udevadm settle
|
2009-05-04 19:44:24 +00:00
|
|
|
eend $?
|
|
|
|
}
|