summary refs log tree commit diff
path: root/contrib/rvnit/04Dudevd
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rvnit/04Dudevd')
-rwxr-xr-xcontrib/rvnit/04Dudevd18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/rvnit/04Dudevd b/contrib/rvnit/04Dudevd
new file mode 100755
index 0000000..318c7e8
--- /dev/null
+++ b/contrib/rvnit/04Dudevd
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+. /etc/runit/functions
+
+# vim: set ts=4 sw=4 et:
+
+[ -n "$VIRTUALIZATION" ] && return 0
+
+if [ -x /usr/lib/systemd/systemd-udevd ]; then
+    _udevd=/usr/lib/systemd/systemd-udevd
+elif [ -x /sbin/udevd -o -x /bin/udevd ]; then
+    _udevd=udevd
+else
+    msg_warn "cannot find udevd!"
+    exit 111
+fi
+
+exec ${_udevd} 2>&1