diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-07 01:02:22 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-07 01:02:22 +0100 |
commit | 07ba00058350948a8a5e89aa312c6f5b12098d93 (patch) | |
tree | d07d8185e2a026f588146cf17e26648fc486222e /contrib/rvnit/sv/04Sudev | |
parent | 5f76e13946b91213cae66d423a90a27eda24dc1a (diff) | |
download | rvnit-07ba00058350948a8a5e89aa312c6f5b12098d93.tar.gz rvnit-07ba00058350948a8a5e89aa312c6f5b12098d93.tar.xz rvnit-07ba00058350948a8a5e89aa312c6f5b12098d93.zip |
add contrib
Diffstat (limited to 'contrib/rvnit/sv/04Sudev')
-rwxr-xr-x | contrib/rvnit/sv/04Sudev | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/rvnit/sv/04Sudev b/contrib/rvnit/sv/04Sudev new file mode 100755 index 0000000..d1b0697 --- /dev/null +++ b/contrib/rvnit/sv/04Sudev @@ -0,0 +1,23 @@ +#!/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!" +fi + +if [ -n "${_udevd}" ]; then + msg "Starting udev and waiting for devices to settle..." + ${_udevd} --daemon + udevadm trigger --action=add --type=subsystems + udevadm trigger --action=add --type=devices + udevadm settle +fi |