summary refs log tree commit diff
path: root/contrib/rvnit/04Dudevd
blob: 318c7e8aeaceb5425e1b9093f68a7b3c0a968e78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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