summaryrefslogtreecommitdiff
path: root/user/eudev/udev-settle.initd
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 01:08:52 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 01:08:52 -0500
commit518c42acde0f5889d0dc4b41a55a2c9356c3d6cd (patch)
tree5e9333f39fedefbaabe6113a206fef44096d838c /user/eudev/udev-settle.initd
parent7b2a62c315b590bb9514735c3aef209e1dafaa92 (diff)
downloadpackages-518c42acde0f5889d0dc4b41a55a2c9356c3d6cd.tar.gz
packages-518c42acde0f5889d0dc4b41a55a2c9356c3d6cd.tar.bz2
packages-518c42acde0f5889d0dc4b41a55a2c9356c3d6cd.tar.xz
packages-518c42acde0f5889d0dc4b41a55a2c9356c3d6cd.zip
user/eudev: fix up and merge udev-init-scripts in (why was that ever separate?)
Diffstat (limited to 'user/eudev/udev-settle.initd')
-rw-r--r--user/eudev/udev-settle.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/user/eudev/udev-settle.initd b/user/eudev/udev-settle.initd
new file mode 100644
index 000000000..c495769e6
--- /dev/null
+++ b/user/eudev/udev-settle.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend()
+{
+ need udev
+ after udev-trigger
+ provide dev-settle
+ keyword -lxc -systemd-nspawn -vserver
+}
+
+start()
+{
+ ebegin "Waiting for uevents to be processed"
+ udevadm settle \
+ ${udev_settle_timeout:+--timeout=}$udev_settle_timeout
+ eend $?
+}