diff options
Diffstat (limited to 'contrib/rvnit/05Sudev')
-rwxr-xr-x | contrib/rvnit/05Sudev | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/rvnit/05Sudev b/contrib/rvnit/05Sudev new file mode 100755 index 0000000..fa910ff --- /dev/null +++ b/contrib/rvnit/05Sudev @@ -0,0 +1,22 @@ +#!/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 "Waiting for devices to settle..." + udevadm trigger --action=add --type=subsystems + udevadm trigger --action=add --type=devices + udevadm settle +fi |